make sure we free the grep data as well

1_6_stable
Mike Frysinger 2007-04-12 18:29:27 +00:00
parent b69f35effe
commit 3a62a737f7
1 changed files with 1 additions and 0 deletions

View File

@ -493,6 +493,7 @@ int grep_main(int argc, char **argv)
free(gl->pattern);
if ((gl->flg_mem_alocated_compiled & COMPILED))
regfree(&(gl->preg));
free(gl);
free(pattern_head_ptr);
}
}