Closed a memory leak found by valgrind

This commit is contained in:
Thomas Schmitt 2011-05-03 11:52:07 +00:00
parent 340e54b90e
commit 886775fc12
2 changed files with 3 additions and 1 deletions

View File

@ -406,6 +406,8 @@ int Findjob_destroy(struct FindjoB **o, int flag)
Exprnode_destroy(&(m->test_tree), 0); Exprnode_destroy(&(m->test_tree), 0);
if(m->start_path != NULL) if(m->start_path != NULL)
free(m->start_path); free(m->start_path);
if(m->found_path != NULL)
free(m->found_path);
free((char *) *o); free((char *) *o);
*o= NULL; *o= NULL;
return(1); return(1);

View File

@ -1 +1 @@
#define Xorriso_timestamP "2011.05.03.115146" #define Xorriso_timestamP "2011.05.03.115226"