forked from ariadne/pkgconf
cli: fix memory leak when packages are not provided on the command line
parent
cef30268e1
commit
ce82e36c14
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue