summaryrefslogtreecommitdiffstats
path: root/xlators/performance/quick-read/src/quick-read.c
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2011-09-16 15:17:24 +0530
committerVijay Bellur <vijay@gluster.com>2011-09-18 23:04:37 -0700
commit5de8c537936c547d8eafa3913e63a84646134f36 (patch)
tree54887136f84fd7f34f2f84d2d40c30a8432c8eaa /xlators/performance/quick-read/src/quick-read.c
parent003a578d9b324e769e231451a53688b48550e0f0 (diff)
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 <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amar@gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/performance/quick-read/src/quick-read.c')
-rw-r--r--xlators/performance/quick-read/src/quick-read.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c
index e8385089f1a..b5a6161d27e 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;
}