From: Rene Scharfe Date: Wed, 30 Aug 2017 18:20:15 +0000 (+0200) Subject: userdiff: release strbuf after use in userdiff_get_textconv() X-Git-Tag: v2.15.0-rc0~78^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/460c7eb2bf5540384dfc18ace59abec6fa3aa009?hp=4168be8e39bd75084a8d49eda4390a5b5a1e68a6 userdiff: release strbuf after use in userdiff_get_textconv() Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- 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;