From 6fe790ee35de9ffe2ada4a923daa5d56b61683e4 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/440 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/performance/quick-read/src/quick-read.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c index d0fbdb050..bf19c02d3 100644 --- a/xlators/performance/quick-read/src/quick-read.c +++ b/xlators/performance/quick-read/src/quick-read.c @@ -881,10 +881,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