mirror of
https://git.busybox.net/busybox.git
synced 2025-01-02 11:03:43 +08:00
make sure we free the grep data as well
This commit is contained in:
parent
b69f35effe
commit
3a62a737f7
@ -493,6 +493,7 @@ int grep_main(int argc, char **argv)
|
|||||||
free(gl->pattern);
|
free(gl->pattern);
|
||||||
if ((gl->flg_mem_alocated_compiled & COMPILED))
|
if ((gl->flg_mem_alocated_compiled & COMPILED))
|
||||||
regfree(&(gl->preg));
|
regfree(&(gl->preg));
|
||||||
|
free(gl);
|
||||||
free(pattern_head_ptr);
|
free(pattern_head_ptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user