summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2009-12-04 09:28:23 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-12-04 07:06:56 -0800
commit89bbaa124af8c54bb7ca8b85ad5d40f0bb754e49 (patch)
tree0fa90d30b08a85f53f8664fb4d4f227bd5155836
parent4439876a34f2e5d19db0d8b05ce7d7722c1c466f (diff)
posix_rchecksum() - fix leak of read buffer
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 320 (Improve self-heal performance) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=320
-rw-r--r--xlators/storage/posix/src/posix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index dfa1e28d5..c4e63fa6a 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,