Skip to content

Commit 460c7eb

Browse files
rscharfegitster
authored andcommitted
userdiff: release strbuf after use in userdiff_get_textconv()
Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4168be8 commit 460c7eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

userdiff.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ struct userdiff_driver *userdiff_get_textconv(struct userdiff_driver *driver)
293293
strbuf_addf(&name, "textconv/%s", driver->name);
294294
notes_cache_init(c, name.buf, driver->textconv);
295295
driver->textconv_cache = c;
296+
strbuf_release(&name);
296297
}
297298

298299
return driver;

0 commit comments

Comments
 (0)