From 7006ae207c9e8ab9685d8e2e7455bd4e3b217c97 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Mon, 15 Jun 2009 04:12:42 +0000 Subject: write-behind: fix memory corruption - wb_sync did not set local = NULL after stack_wind. It also used to free local if its not NULL as part of cleanup process. Hence there was a double free in STACK_DESTROY done in wb_sync_cbk. Signed-off-by: Anand V. Avati --- xlators/performance/write-behind/src/write-behind.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/performance/write-behind') diff --git a/xlators/performance/write-behind/src/write-behind.c b/xlators/performance/write-behind/src/write-behind.c index 2a9eeff5a20..81fcde5aea5 100644 --- a/xlators/performance/write-behind/src/write-behind.c +++ b/xlators/performance/write-behind/src/write-behind.c @@ -457,6 +457,7 @@ wb_sync (call_frame_t *frame, wb_file_t *file, list_head_t *winds) iobref = NULL; vector = NULL; sync_frame = NULL; + local = NULL; copied = count = 0; } } -- cgit