summaryrefslogtreecommitdiff
path: root/findutils/grep.c
diff options
context:
space:
mode:
Diffstat (limited to 'findutils/grep.c')
-rw-r--r--findutils/grep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index 2ca4a3a..f434176 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -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);
}
}