archive: convert sha1_file_to_archive to struct object_id
[gitweb.git] / builtin / diff-index.c
index 9d772f8f27fe722921c00ea57af1087f988856da..522f4fdffd064de2e50232934cb7d616246c92e4 100644 (file)
@@ -56,5 +56,6 @@ int cmd_diff_index(int argc, const char **argv, const char *prefix)
                return -1;
        }
        result = run_diff_index(&rev, cached);
+       UNLEAK(rev);
        return diff_result_code(&rev.diffopt, result);
 }