Skip to content

Commit

Permalink
sequencer.c: plug mem leak in git_sequencer_config
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Beller <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
stefanbeller authored and gitster committed Jun 25, 2018
1 parent 19517fb commit f40f3c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sequencer.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ static int git_sequencer_config(const char *k, const char *v, void *cb)
warning(_("invalid commit message cleanup mode '%s'"),
s);

free((char *)s);
return status;
}

Expand Down

0 comments on commit f40f3c1

Please sign in to comment.