diff options
author | Alex Henrie <alexhenrie24@gmail.com> | 2022-02-11 16:36:24 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-11 18:06:40 (GMT) |
commit | dccf6c16f1cee485f05ef42ba67a9309c358a78d (patch) | |
tree | 0bb9faa697992a532b8ce1f67ea4ff6d524414bd /revision.c | |
parent | 2b9c1209706bc2ef0ab09fb0bdc7d405e225ce8b (diff) | |
download | git-dccf6c16f1cee485f05ef42ba67a9309c358a78d.zip git-dccf6c16f1cee485f05ef42ba67a9309c358a78d.tar.gz git-dccf6c16f1cee485f05ef42ba67a9309c358a78d.tar.bz2 |
log: fix memory leak if --graph is passed multiple times
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.c')
-rw-r--r-- | revision.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2426,6 +2426,7 @@ static int handle_revision_opt(struct rev_info *revs, int argc, const char **arg } else if (!strcmp(arg, "--graph")) { revs->topo_order = 1; revs->rewrite_parents = 1; + graph_clear(revs->graph); revs->graph = graph_init(revs); } else if (!strcmp(arg, "--encode-email-headers")) { revs->encode_email_headers = 1; |