Skip to content

Commit 1bada2b

Browse files
committed
Merge branch 'mm/log-branch-desc-plug-leak'
* mm/log-branch-desc-plug-leak: builtin/log.c: fix minor memory leak
2 parents 7b41640 + 94204bf commit 1bada2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/log.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,7 @@ static void add_branch_description(struct strbuf *buf, const char *branch_name)
864864
strbuf_addbuf(buf, &desc);
865865
strbuf_addch(buf, '\n');
866866
}
867+
strbuf_release(&desc);
867868
}
868869

869870
static char *find_branch_name(struct rev_info *rev)

0 commit comments

Comments
 (0)