Skip to content

Commit

Permalink
builtin-apply.c: fix a tiny leak introduced during xmemdupz() convers…
Browse files Browse the repository at this point in the history
…ion.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Sep 19, 2007
1 parent 182af83 commit ca03283
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin-apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ca03283

Please sign in to comment.