Skip to content

Commit e2581b7

Browse files
rscharfegitster
authored andcommitted
remote: release strbuf after use in read_remote_branches()
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent aeb014f commit e2581b7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

builtin/remote.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ static int read_remote_branches(const char *refname,
571571
else
572572
item->util = NULL;
573573
}
574+
strbuf_release(&buf);
574575

575576
return 0;
576577
}

0 commit comments

Comments
 (0)