aboutsummaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
authorGravatar Mike Frysinger <vapier@gentoo.org>2007-04-12 18:29:27 +0000
committerGravatar Mike Frysinger <vapier@gentoo.org>2007-04-12 18:29:27 +0000
commit3a62a737f7df06b1762c37b10be0d3985ab9fc1a (patch)
tree3ea2151e085037900458fe4cc59be9c19841befc /findutils
parentb69f35effee244a564a2c2557578812be1e77296 (diff)
downloadbusybox-3a62a737f7df06b1762c37b10be0d3985ab9fc1a.tar.gz
busybox-3a62a737f7df06b1762c37b10be0d3985ab9fc1a.tar.bz2
make sure we free the grep data as well
Diffstat (limited to 'findutils')
-rw-r--r--findutils/grep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/findutils/grep.c b/findutils/grep.c
index 2ca4a3a0a..f43417601 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);
}
}