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;