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>
This commit is contained in:
parent
4168be8e39
commit
460c7eb2bf
@ -293,6 +293,7 @@ struct userdiff_driver *userdiff_get_textconv(struct userdiff_driver *driver)
|
|||||||
strbuf_addf(&name, "textconv/%s", driver->name);
|
strbuf_addf(&name, "textconv/%s", driver->name);
|
||||||
notes_cache_init(c, name.buf, driver->textconv);
|
notes_cache_init(c, name.buf, driver->textconv);
|
||||||
driver->textconv_cache = c;
|
driver->textconv_cache = c;
|
||||||
|
strbuf_release(&name);
|
||||||
}
|
}
|
||||||
|
|
||||||
return driver;
|
return driver;
|
||||||
|
Loading…
Reference in New Issue
Block a user