Browse Source

builtin-apply.c: fix a tiny leak introduced during xmemdupz() conversion.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Junio C Hamano 17 years ago
parent
commit
ca0328354a
  1. 1
      builtin-apply.c

1
builtin-apply.c

@ -291,6 +291,7 @@ static char *find_name(const char *line, char *def, int p_value, int terminate) @@ -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);

Loading…
Cancel
Save