git-instaweb: pass through invoking user's path to gitweb CGI scripts
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index 167e6a4abda105ec1c4b4ddc58867a57ca506ba2..a1bf1e9cb37104cda8168c5118769ce5bbcfcbb2 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -551,6 +551,10 @@ static void emit_rewrite_diff(const char *name_a,
                emit_rewrite_lines(&ecbdata, '-', data_one, size_one);
        if (lc_b)
                emit_rewrite_lines(&ecbdata, '+', data_two, size_two);
+       if (textconv_one)
+               free((char *)data_one);
+       if (textconv_two)
+               free((char *)data_two);
 }
 
 struct diff_words_buffer {