diff options
-rw-r--r-- | builtin-apply.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin-apply.c b/builtin-apply.c index 512c9b6142..db337f1aca 100644 --- a/builtin-apply.c +++ b/builtin-apply.c @@ -291,6 +291,7 @@ static char *find_name(const char *line, char *def, int p_value, int terminate) int deflen = strlen(def); if (deflen < len && !strncmp(start, def, deflen)) return def; + free(def); } return xmemdupz(start, len); |