summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2011-09-16 15:17:24 +0530
committerVijay Bellur <vijay@gluster.com>2011-09-19 00:06:57 -0700
commit6fe790ee35de9ffe2ada4a923daa5d56b61683e4 (patch)
treeeec5d6a70ce9b0c209a0d57bcbb63c3ae2d67030 /xlators
parent6dc861b59bda6ac0957e1332930397c389b02db3 (diff)
performance/quick-read: fix memory corruption.v3.2.4qa1
- 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 <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators')
-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 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;
}