Closed a memory leak found by valgrind
This commit is contained in:
@ -406,6 +406,8 @@ int Findjob_destroy(struct FindjoB **o, int flag)
|
||||
Exprnode_destroy(&(m->test_tree), 0);
|
||||
if(m->start_path != NULL)
|
||||
free(m->start_path);
|
||||
if(m->found_path != NULL)
|
||||
free(m->found_path);
|
||||
free((char *) *o);
|
||||
*o= NULL;
|
||||
return(1);
|
||||
|
Reference in New Issue
Block a user