cli: fix memory leak when packages are not provided on the command line

master
Ariadne Conill 2021-08-17 14:39:44 -06:00
parent cef30268e1
commit ce82e36c14
1 changed files with 2 additions and 1 deletions

View File

@ -1286,7 +1286,8 @@ main(int argc, char *argv[])
if (pkgq.head == NULL) if (pkgq.head == NULL)
{ {
fprintf(stderr, "Please specify at least one package name on the command line.\n"); fprintf(stderr, "Please specify at least one package name on the command line.\n");
return EXIT_FAILURE; ret = EXIT_FAILURE;
goto out;
} }
ret = EXIT_SUCCESS; ret = EXIT_SUCCESS;