summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-09-29 16:42:50 -0700
committerJunio C Hamano <gitster@pobox.com>2007-09-29 16:42:50 -0700
commitff08c373dccf3f5950c73ed3025aeb15b075895d (patch)
treec9ae7d59ec067fefde96841dad7ad7928aab5b65 /diff.c
parentd7da5597a850c721eb0698188696096c8090a85f (diff)
parenta5a3878ba7a0da5ee4331f6064d6b50aadbb10ff (diff)
Merge branch 'jk/diff-rename'
* jk/diff-rename: diffcore-rename: cache file deltas
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index 0ee9ea1c1b..35e3c61986 100644
--- a/diff.c
+++ b/diff.c
@@ -1675,7 +1675,7 @@ int diff_populate_filespec(struct diff_filespec *s, int size_only)
return 0;
}
-void diff_free_filespec_data(struct diff_filespec *s)
+void diff_free_filespec_data_large(struct diff_filespec *s)
{
if (s->should_free)
free(s->data);
@@ -1686,6 +1686,11 @@ void diff_free_filespec_data(struct diff_filespec *s)
s->should_free = s->should_munmap = 0;
s->data = NULL;
}
+}
+
+void diff_free_filespec_data(struct diff_filespec *s)
+{
+ diff_free_filespec_data_large(s);
free(s->cnt_data);
s->cnt_data = NULL;
}