Fix minor memory leak in drop_core_in_log().