projects
/
platform
/
upstream
/
ltrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7a25b6
)
Plug a leak
author
Petr Machata
<pmachata@redhat.com>
Wed, 6 Nov 2013 10:17:12 +0000
(11:17 +0100)
committer
Chanho Park
<chanho61.park@samsung.com>
Fri, 22 Aug 2014 11:38:23 +0000
(20:38 +0900)
sysdeps/linux-gnu/hooks.c
patch
|
blob
|
history
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;