summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-09-22 00:10:28 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-22 02:08:47 -0700
commit8432caca68b9006061226998648c0dd0ff5ebbd3 (patch)
treef534a40c233ddc5d9b51d9f9474e62d250947440
parent7655ccebd46936a42a6edb62184455077a6505fd (diff)
performance/quick-read: fix memory leaks.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1438 (memory leaks) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1438
-rw-r--r--xlators/performance/quick-read/src/quick-read.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c
index a952dd55c75..5813d961c49 100644
--- a/xlators/performance/quick-read/src/quick-read.c
+++ b/xlators/performance/quick-read/src/quick-read.c
@@ -2065,8 +2065,6 @@ qr_ftruncate_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
goto out;
}
- frame->local = NULL;
-
LOCK (&table->lock);
{
ret = inode_ctx_get (local->fd->inode, this, &value);
@@ -2087,7 +2085,7 @@ qr_ftruncate_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
out:
QR_STACK_UNWIND (ftruncate, frame, op_ret, op_errno, prebuf,
- postbuf);
+ postbuf);
return 0;
}