Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-06-01 23:01:46 +0300
committerJunio C Hamano <gitster@pobox.com>2018-06-25 23:10:09 +0300
commitf40f3c16cd3b0b5e696e62c08c84c8f527eaaf0e (patch)
tree3ea00d12ab3c809ff58bca60611cf878694596ea /sequencer.c
parent19517fb964f81c1bd3ddd006e0fc0119167d9cb2 (diff)
sequencer.c: plug mem leak in git_sequencer_config
Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sequencer.c')
-rw-r--r--sequencer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sequencer.c b/sequencer.c
index ae6f2c27ec..9bdfd26a4b 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -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;
}