Set client_closure to NULL after freeing it.

This commit is contained in:
Todd C. Miller
2022-02-03 10:55:45 -07:00
parent 3f1bb7bc97
commit c236d58b5a
2 changed files with 2 additions and 1 deletions

View File

@@ -1988,7 +1988,6 @@ client_closure_alloc(struct log_details *details, struct timespec *now,
oom:
sudo_warnx(U_("%s: %s"), __func__, U_("unable to allocate memory"));
client_closure_free(closure);
closure = NULL;
debug_return_ptr(NULL);
}