diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-09-19 01:37:50 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-09-19 01:54:24 -0700 |
commit | ca0328354afbf4ec6941cb4312bfc6908ab06d73 (patch) | |
tree | 5ed8e1d5439b63551693fba5c279010ad44084ad | |
parent | 182af8343c307436bb5364309aa6d4d46fa5911d (diff) | |
download | git-ca0328354afbf4ec6941cb4312bfc6908ab06d73.tar.gz |
builtin-apply.c: fix a tiny leak introduced during xmemdupz() conversion.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-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); |