remote: release strbuf after use in read_remote_branches()
authorRene Scharfe <l.s.r@web.de>
Wed, 30 Aug 2017 18:00:25 +0000 (20:00 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Sep 2017 23:49:28 +0000 (08:49 +0900)
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/remote.c
index a995ea86c17474be248a974469f7d535c942fc70..d0bf999abf7459f45dec25e4f1920b766a44aea1 100644 (file)
@@ -571,6 +571,7 @@ static int read_remote_branches(const char *refname,
                else
                        item->util = NULL;
        }
+       strbuf_release(&buf);
 
        return 0;
 }