main: goto cleanup in validate case too

This fixes leaks in two tests
master
Dylan Baker 2022-08-03 16:30:59 -07:00
parent 171738024e
commit 38103134a5
1 changed files with 1 additions and 1 deletions

View File

@ -1337,7 +1337,7 @@ main(int argc, char *argv[])
} }
if ((want_flags & PKG_VALIDATE) == PKG_VALIDATE) if ((want_flags & PKG_VALIDATE) == PKG_VALIDATE)
return 0; goto out;
if ((want_flags & PKG_UNINSTALLED) == PKG_UNINSTALLED) if ((want_flags & PKG_UNINSTALLED) == PKG_UNINSTALLED)
{ {