summaryrefslogtreecommitdiff
path: root/builtin/remote.c
diff options
context:
space:
mode:
authorRene Scharfe <l.s.r@web.de>2017-08-30 18:00:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-09-06 23:49:28 (GMT)
commite2581b7221f52c30432dfc1a8934abd82b610e7c (patch)
treec2cd0c024a9221e772e971c4f7e6c96a63b588fc /builtin/remote.c
parentaeb014f6aecab6c72490dbe00fd9518b2c75db11 (diff)
downloadgit-e2581b7221f52c30432dfc1a8934abd82b610e7c.zip
git-e2581b7221f52c30432dfc1a8934abd82b610e7c.tar.gz
git-e2581b7221f52c30432dfc1a8934abd82b610e7c.tar.bz2
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>
Diffstat (limited to 'builtin/remote.c')
-rw-r--r--builtin/remote.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/remote.c b/builtin/remote.c
index a995ea8..d0bf999 100644
--- a/builtin/remote.c
+++ b/builtin/remote.c
@@ -571,6 +571,7 @@ static int read_remote_branches(const char *refname,
else
item->util = NULL;
}
+ strbuf_release(&buf);
return 0;
}