Signed-off-by: Rene Scharfe <l.s.r@xxxxxx> --- 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 @@ -284,16 +284,17 @@ struct userdiff_driver *userdiff_find_by_path(const char *path) struct userdiff_driver *userdiff_get_textconv(struct userdiff_driver *driver) { if (!driver->textconv) return NULL; if (driver->textconv_want_cache && !driver->textconv_cache) { struct notes_cache *c = xmalloc(sizeof(*c)); struct strbuf name = STRBUF_INIT; strbuf_addf(&name, "textconv/%s", driver->name); notes_cache_init(c, name.buf, driver->textconv); driver->textconv_cache = c; + strbuf_release(&name); } return driver; } -- 2.14.1