summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Rene Scharfe <l.s.r@web.de>2017-08-30 20:20:15 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-07 08:49:28 +0900
commit460c7eb2bf5540384dfc18ace59abec6fa3aa009 (patch)
treee61c8c6cb3f7e8e9b4da56b9ea9aea6d7b941242
parenttransport-helper: release strbuf after use in process_connect_service() (diff)
downloadtgif-460c7eb2bf5540384dfc18ace59abec6fa3aa009.tar.xz
userdiff: release strbuf after use in userdiff_get_textconv()
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--userdiff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/userdiff.c b/userdiff.c
index 2c1502f719..6321103ce2 100644
--- a/userdiff.c
+++ b/userdiff.c
@@ -293,6 +293,7 @@ struct userdiff_driver *userdiff_get_textconv(struct userdiff_driver *driver)
strbuf_addf(&name, "textconv/%s", driver->name);
notes_cache_init(c, name.buf, driver->textconv);
driver->textconv_cache = c;
+ strbuf_release(&name);
}
return driver;