Unidiff1 files changed, 8 insertions, 0 deletions
|
diff --git a/shared.c b/shared.c index 83ded44..8b3a045 100644 --- a/ shared.c+++ b/ shared.c |
|
@@ -282,2 +282,6 @@ int cgit_diff_files(const unsigned char *old_sha1, |
282 | *binary = 1; |
282 | *binary = 1; |
| |
283 | if (file1.size) |
| |
284 | free(file1.ptr); |
| |
285 | if (file2.size) |
| |
286 | free(file2.ptr); |
283 | return 0; |
287 | return 0; |
@@ -294,2 +298,6 @@ int cgit_diff_files(const unsigned char *old_sha1, |
294 | xdl_diff(&file1, &file2, &diff_params, &emit_params, &emit_cb); |
298 | xdl_diff(&file1, &file2, &diff_params, &emit_params, &emit_cb); |
| |
299 | if (file1.size) |
| |
300 | free(file1.ptr); |
| |
301 | if (file2.size) |
| |
302 | free(file2.ptr); |
295 | return 0; |
303 | return 0; |
|