connect: teach client to recognize v1 server response
[gitweb.git] / userdiff.c
index 8b732e40bce4968257c2918219f7dfdb0b9ed3a0..6321103ce25dea936eea84fdb2a0d6d636e1cddb 100644 (file)
@@ -1,4 +1,5 @@
 #include "cache.h"
+#include "config.h"
 #include "userdiff.h"
 #include "attr.h"
 
@@ -292,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;