From 5de8c537936c547d8eafa3913e63a84646134f36 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Fri, 16 Sep 2011 15:17:24 +0530 Subject: performance/quick-read: fix memory corruption. - macro QR_STACK_UNWIND destroys the stub present in local and hence no need of explicitly calling call_stub_destroy on it. Change-Id: Ib81c9a0d382765e783722b14fdbd7877086b1bec BUG: 3562 Reviewed-on: http://review.gluster.com/439 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi Reviewed-by: Vijay Bellur --- xlators/performance/quick-read/src/quick-read.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'xlators/performance/quick-read') diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c index e8385089f..b5a6161d2 100644 --- a/xlators/performance/quick-read/src/quick-read.c +++ b/xlators/performance/quick-read/src/quick-read.c @@ -882,10 +882,6 @@ qr_validate_cache_cbk (call_frame_t *frame, void *cookie, xlator_t *this, unwind: /* this is actually unwind of readv */ - if ((local != NULL) && (local->stub != NULL)) { - call_stub_destroy (local->stub); - } - QR_STACK_UNWIND (readv, frame, op_ret, op_errno, NULL, -1, NULL, NULL); return 0; } -- cgit