From: Todd C. Miller Date: Tue, 29 May 2018 16:10:20 +0000 (-0600) Subject: Fix memory leak of handle pointer on close. X-Git-Tag: SUDO_1_8_24^2~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1202beafbae1c5bb23f2e6722b00075a3b400bc9;p=sudo Fix memory leak of handle pointer on close. --- diff --git a/plugins/sudoers/file.c b/plugins/sudoers/file.c index c83e91605..dc6713f1c 100644 --- a/plugins/sudoers/file.c +++ b/plugins/sudoers/file.c @@ -57,6 +57,7 @@ sudo_file_close(struct sudo_nss *nss) free_userspecs(&handle->userspecs); free_defaults(&handle->defaults); + free(handle); nss->handle = NULL; }