Skip to content

Commit

Permalink
builtin/log.c: fix minor memory leak
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Matthieu Moy authored and Junio C Hamano committed Aug 7, 2014
1 parent d31f3ad commit 94204bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,7 @@ static void add_branch_description(struct strbuf *buf, const char *branch_name)
strbuf_add(buf, desc.buf, desc.len);
strbuf_addch(buf, '\n');
}
strbuf_release(&desc);
}

static char *find_branch_name(struct rev_info *rev)
Expand Down

0 comments on commit 94204bf

Please sign in to comment.