| commit | 89396203c9de0d60374e1b298529afcf0bfbf5ed | [log] [tgz] |
|---|---|---|
| author | Petr Machata <pmachata@redhat.com> | Wed Nov 06 11:17:12 2013 +0100 |
| committer | Petr Machata <pmachata@redhat.com> | Wed Nov 06 12:12:57 2013 +0100 |
| tree | 999c916a111f4e26cbde74c71fc91c29cd795033 | |
| parent | 4ec22bd78841e4c1f76b0d2077bd03d62ee3af38 [diff] [blame] |
Plug a leak
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 @@ /* 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;