From d7b367393301c42ebd025eefff1f66a5677a08e5 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 17 Dec 2022 16:37:29 -0700 Subject: [PATCH] Add missing sudo_json_free(). --- lib/util/regress/json/json_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/util/regress/json/json_test.c b/lib/util/regress/json/json_test.c index 7158cf50c..8dc67193e 100644 --- a/lib/util/regress/json/json_test.c +++ b/lib/util/regress/json/json_test.c @@ -224,6 +224,8 @@ main(int argc, char *argv[]) } done: + sudo_json_free(&jsonc); + if (ntests != 0) { printf("%s: %d tests run, %d errors, %d%% success rate\n", getprogname(), ntests, errors, (ntests - errors) * 100 / ntests);