mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-01 23:05:17 +00:00
Plug memory leaks in store_sudo_test found by LSAN.
This commit is contained in:
@@ -189,12 +189,14 @@ main(int argc, char *argv[])
|
|||||||
|
|
||||||
next:
|
next:
|
||||||
lbuf.len = 0;
|
lbuf.len = 0;
|
||||||
|
eventlog_json_free(root);
|
||||||
eventlog_free(evlog);
|
eventlog_free(evlog);
|
||||||
if (infp != NULL)
|
if (infp != NULL)
|
||||||
fclose(infp);
|
fclose(infp);
|
||||||
if (outfp != NULL && outfp != infp)
|
if (outfp != NULL && outfp != infp)
|
||||||
fclose(outfp);
|
fclose(outfp);
|
||||||
}
|
}
|
||||||
|
sudo_lbuf_destroy(&lbuf);
|
||||||
|
|
||||||
if (ntests != 0) {
|
if (ntests != 0) {
|
||||||
printf("%s: %d test%s run, %d errors, %d%% success rate\n",
|
printf("%s: %d test%s run, %d errors, %d%% success rate\n",
|
||||||
|
Reference in New Issue
Block a user