-rw-r--r-- | shared.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -62,2 +62,3 @@ struct cgit_repo *cgit_add_repo(const char *url) ret->enable_remote_branches = ctx.cfg.enable_remote_branches; + ret->enable_subject_links = ctx.cfg.enable_subject_links; ret->max_stats = ctx.cfg.max_stats; @@ -281,2 +282,6 @@ int cgit_diff_files(const unsigned char *old_sha1, *binary = 1; + if (file1.size) + free(file1.ptr); + if (file2.size) + free(file2.ptr); return 0; @@ -293,2 +298,6 @@ int cgit_diff_files(const unsigned char *old_sha1, xdl_diff(&file1, &file2, &diff_params, &emit_params, &emit_cb); + if (file1.size) + free(file1.ptr); + if (file2.size) + free(file2.ptr); return 0; |