From a017bf21dd89159052f2f7a3fbc043a24956c08c Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 24 Jan 2007 19:46:19 +0000 Subject: Every file in this commit has a memory leak of some kind or another. I think all of them are minor and should not effect properly running code. But if I were you I would give libstocks and the stockticker plugin in Today a wide berth. That library is atrocious. --- (limited to 'rsync') diff --git a/rsync/delta.c b/rsync/delta.c index 323c079..42f3afb 100644 --- a/rsync/delta.c +++ b/rsync/delta.c @@ -335,6 +335,7 @@ rs_job_t *rs_delta_begin(rs_signature_t *sig) if ((job->block_len = sig->block_len) < 0) { rs_log(RS_LOG_ERR, "unreasonable block_len %d in signature", job->block_len); + rs_job_free(job); return NULL; } @@ -342,6 +343,7 @@ rs_job_t *rs_delta_begin(rs_signature_t *sig) if (job->strong_sum_len < 0 || job->strong_sum_len > RS_MD4_LENGTH) { rs_log(RS_LOG_ERR, "unreasonable strong_sum_len %d in signature", job->strong_sum_len); + rs_job_free(job); return NULL; } -- cgit v0.9.0.2