sequencer.c: plug mem leak in git_sequencer_config
authorStefan Beller <sbeller@google.com>
Fri, 1 Jun 2018 20:01:46 +0000 (13:01 -0700)
committerJunio 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

index ae6f2c2..9bdfd26 100644 (file)
@@ -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;
        }