[PATCH] Only warn when freeing NULL pointer