[PATCH 1/2] util: avoid free() when reset log after fork