Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
sequencer.c: plug mem leak in git_sequencer_config
author
Stefan Beller
<sbeller@google.com>
Fri, 1 Jun 2018 20:01:46 +0000
(13:01 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 25 Jun 2018 20:10:09 +0000
(13:10 -0700)
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
19517fb
)
diff --git
a/sequencer.c
b/sequencer.c
index ae6f2c27ec93f0ee662701a9c1d704428b1ef311..9bdfd26a4b5d63acae0a111084d4613fcaf2c9fd 100644
(file)
--- 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;
}