about summary refs log tree commit diff
path: root/sysdeps/generic/wordexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/wordexp.c')
-rw-r--r--sysdeps/generic/wordexp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/generic/wordexp.c b/sysdeps/generic/wordexp.c
index 82765e1820..dcd724ef4f 100644
--- a/sysdeps/generic/wordexp.c
+++ b/sysdeps/generic/wordexp.c
@@ -370,6 +370,7 @@ parse_tilde (char **word, size_t *word_length, size_t *max_length,
 	}
 
       *offset = i - 1;
+      free (user);
     }
   return *word ? 0 : WRDE_NOSPACE;
 }