X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=diff.c;h=c73a40b9ab3abe3e4a1ddd51a23a19be36b07ea4;hb=dcd0409fc545e881a61f522eb8f1d1a7e814eb94;hp=c0548eed98df0fb6c11b04a775b6b64b3bb4d417;hpb=d00e0f8101e18e3d48a60d574dacc83dad8e19bb;p=git.git diff --git a/diff.c b/diff.c index c0548eed..c73a40b9 100644 --- a/diff.c +++ b/diff.c @@ -463,6 +463,8 @@ void diff_free_filespec_data(struct diff_filespec *s) munmap(s->data, s->size); s->should_free = s->should_munmap = 0; s->data = NULL; + free(s->cnt_data); + s->cnt_data = NULL; } static void prep_temp_blob(struct diff_tempfile *temp,