main: goto cleanup in validate case too

This fixes leaks in two tests
Dylan Baker 2022-08-03 16:30:59 -07:00
parent 2133830c21
commit b26f19cebf
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)
return 0;
goto out;
if ((want_flags & PKG_UNINSTALLED) == PKG_UNINSTALLED)
{