From 460c7eb2bf5540384dfc18ace59abec6fa3aa009 Mon Sep 17 00:00:00 2001 From: Rene Scharfe Date: Wed, 30 Aug 2017 20:20:15 +0200 Subject: userdiff: release strbuf after use in userdiff_get_textconv() Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- userdiff.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3