Closed memory leaks detected by valgrind

This commit is contained in:
2011-02-14 13:15:04 +00:00
parent 37688470e1
commit 1ad7e71e24
5 changed files with 11 additions and 3 deletions

View File

@ -181,9 +181,9 @@ no_memory:;
ret= 1;
ex:;
if(patterns!=NULL)
free((char *) patterns);
if(ret<=0) {
if(patterns!=NULL)
free((char *) patterns);
Sfile_destroy_argv(&filec, &filev, 0);
} else {
*optc= filec;