Let core.attributesfile default to $XDG_CONFIG_HOME/git/attributes
[gitweb.git] / diff-no-index.c
index 3080b663bc2a04f6099a25d5fa335768dd117bb0..f0b0010aedd67f9b34f43426c47e837dfe2a522b 100644 (file)
@@ -123,8 +123,8 @@ static int queue_diff(struct diff_options *o,
                }
                string_list_clear(&p1, 0);
                string_list_clear(&p2, 0);
-               strbuf_reset(&buffer1);
-               strbuf_reset(&buffer2);
+               strbuf_release(&buffer1);
+               strbuf_release(&buffer2);
 
                return ret;
        } else {