From 89bbaa124af8c54bb7ca8b85ad5d40f0bb754e49 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Fri, 4 Dec 2009 09:28:23 +0000 Subject: posix_rchecksum() - fix leak of read buffer Signed-off-by: Anand V. Avati Signed-off-by: Anand V. Avati BUG: 320 (Improve self-heal performance) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=320 --- xlators/storage/posix/src/posix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index dfa1e28d57..c4e63fa6a8 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -4717,6 +4717,8 @@ posix_rchecksum (call_frame_t *frame, xlator_t *this, weak_checksum = gf_rsync_weak_checksum (buf, len); gf_rsync_strong_checksum (buf, len, strong_checksum); + FREE (buf); + op_ret = 0; out: STACK_UNWIND_STRICT (rchecksum, frame, op_ret, op_errno, -- cgit