[PATCH] do not check for NULL before calling free