ISCSI-TEST free strings malloc'ed by libpopt

This commit is contained in:
Peter Lieven
2012-10-29 22:07:58 +01:00
parent 2e30d7aafb
commit d989474a36

View File

@@ -436,6 +436,8 @@ int main(int argc, const char *argv[])
if (url == NULL) {
fprintf(stderr, "You must specify the URL\n");
print_usage();
free(skipname);
free(testname);
exit(10);
}
@@ -473,6 +475,10 @@ int main(int argc, const char *argv[])
printf("\n");
}
free(skipname);
free(testname);
free(url);
return num_failed ? num_failed : num_skipped ? 77 : 0;
}