From 3a62a737f7df06b1762c37b10be0d3985ab9fc1a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 12 Apr 2007 18:29:27 +0000 Subject: make sure we free the grep data as well --- findutils/grep.c | 1 + 1 file changed, 1 insertion(+) (limited to 'findutils') 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); } } -- cgit v1.1