projects
/
platform
/
upstream
/
ltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Plug a leak
[platform/upstream/ltrace.git]
/
sysdeps
/
linux-gnu
/
hooks.c
diff --git
a/sysdeps/linux-gnu/hooks.c
b/sysdeps/linux-gnu/hooks.c
index
1e375fb
..
3fb3614
100644
(file)
--- a/
sysdeps/linux-gnu/hooks.c
+++ b/
sysdeps/linux-gnu/hooks.c
@@
-112,6
+112,7
@@
again:
/* The values coming from getenv and getpwuid may not be
* persistent. */
if (home != NULL) {
+ free(g_home_dir);
g_home_dir = strdup(home);
if (g_home_dir != NULL) {
home = g_home_dir;