summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2013-11-06 11:17:12 +0100
committerChanho Park <chanho61.park@samsung.com>2014-08-22 20:38:23 +0900
commit5f8af20d2d2ec66efcb2e1eb7b0749694de6bcda (patch)
tree999c916a111f4e26cbde74c71fc91c29cd795033 /sysdeps
parentd7a25b6cf63ae12f4e0c40d463d0b01fbc1e43fc (diff)
downloadltrace-5f8af20d2d2ec66efcb2e1eb7b0749694de6bcda.tar.gz
ltrace-5f8af20d2d2ec66efcb2e1eb7b0749694de6bcda.tar.bz2
ltrace-5f8af20d2d2ec66efcb2e1eb7b0749694de6bcda.zip
Plug a leak
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/linux-gnu/hooks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/linux-gnu/hooks.c b/sysdeps/linux-gnu/hooks.c
index 1e375fb..3fb3614 100644
--- 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;