projects
/
p5sagit/p5-mst-13.2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
9010f3d
)
Fix for environment leak
Chip Salzenberg [Mon, 14 Apr 1997 12:00:00 +0000 (
00:00
+1200)]
(this is the same change as commit
114695e977a20e0c66aa94b08414017d929a3f66
, but as applied)
util.c
patch
|
blob
|
blame
|
history
diff --git
a/util.c
b/util.c
index
6e5ef47
..
cdb64ad
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-1350,6
+1350,7
@@
char *nam, *val;
environ = tmpenv; /* tell exec where it is now */
}
if (!val) {
+ Safefree(environ[i]);
while (environ[i]) {
environ[i] = environ[i+1];
i++;