aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-12 18:29:27 +0000
committervapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-04-12 18:29:27 +0000
commit1d22652728eec0729d635b684f203993a4e111a9 (patch)
tree3ea2151e085037900458fe4cc59be9c19841befc
parent614f0766caa5c4e574882c756b7d0b115f10709c (diff)
downloadbusybox-w32-1d22652728eec0729d635b684f203993a4e111a9.tar.gz
busybox-w32-1d22652728eec0729d635b684f203993a4e111a9.tar.bz2
busybox-w32-1d22652728eec0729d635b684f203993a4e111a9.zip
make sure we free the grep data as well
git-svn-id: svn://busybox.net/trunk/busybox@18419 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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)
493 free(gl->pattern); 493 free(gl->pattern);
494 if ((gl->flg_mem_alocated_compiled & COMPILED)) 494 if ((gl->flg_mem_alocated_compiled & COMPILED))
495 regfree(&(gl->preg)); 495 regfree(&(gl->preg));
496 free(gl);
496 free(pattern_head_ptr); 497 free(pattern_head_ptr);
497 } 498 }
498 } 499 }