Closed memory leaks detected by valgrind

This commit is contained in:
2011-02-14 13:15:04 +00:00
parent 5d3fbb7060
commit 00a1607c8c
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;