projects
/
empserver
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a77a81
)
Plug memory leak in set_paths() error path
author
Markus Armbruster
<armbru@pond.sub.org>
Sat, 29 Oct 2011 13:14:39 +0000
(15:14 +0200)
committer
Markus Armbruster
<armbru@pond.sub.org>
Thu, 29 Dec 2011 10:47:05 +0000
(11:47 +0100)
Leak appeared in commit
91eefc3f
, v4.3.12. Harmless in practice,
since the error is ultimately fatal.
src/lib/common/emp_config.c
patch
|
blob
|
history
diff --git
a/src/lib/common/emp_config.c
b/src/lib/common/emp_config.c
index 11ffb62d9bded96def5fc7efa409e6492db54f96..89cead07c300b9e7fe277842fb7a75a64b804f70 100644
(file)
--- a/
src/lib/common/emp_config.c
+++ b/
src/lib/common/emp_config.c
@@
-29,7
+29,7
@@
* Known contributors to this file:
* Julian Onions, 1995
* Steve McClure, 1998-2000
- * Markus Armbruster, 2004-20
09
+ * Markus Armbruster, 2004-20
11
*/
/*
@@
-178,6
+178,8
@@
set_paths(char *econfig)
if (p[0] != '/') {
fprintf(stderr, "Can't get current working directory (%s)\n",
strerror(errno));
+ if (p != econfig)
+ free(p);
return -1;
}
if (p == econfig)