From b26f19cebf1d22911eeb12ccddda990b5f40d15d Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 3 Aug 2022 16:30:59 -0700 Subject: [PATCH] main: goto cleanup in validate case too This fixes leaks in two tests --- cli/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/main.c b/cli/main.c index 5faf0dc..b37a37a 100644 --- a/cli/main.c +++ b/cli/main.c @@ -1337,7 +1337,7 @@ main(int argc, char *argv[]) } if ((want_flags & PKG_VALIDATE) == PKG_VALIDATE) - return 0; + goto out; if ((want_flags & PKG_UNINSTALLED) == PKG_UNINSTALLED) {