projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b69f35e
)
make sure we free the grep data as well
author
Mike Frysinger
<vapier@gentoo.org>
Thu, 12 Apr 2007 18:29:27 +0000
(18:29 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Thu, 12 Apr 2007 18:29:27 +0000
(18:29 -0000)
findutils/grep.c
patch
|
blob
|
history
diff --git
a/findutils/grep.c
b/findutils/grep.c
index 2ca4a3a0ada73a5b94a3cb3c3608d4d200859ed4..f43417601d539f0f5bc4b3db5477b4a10b696a09 100644
(file)
--- 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);
}
}