From 18d85b59b9e8cc422c06e3ea94694d0cb2d26e1b Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Thu, 12 Nov 2009 19:48:54 +0000 Subject: fix a crash in debug/trace stat structure (which is an argument to function) was getting freed instead of string which actually should have freed. Signed-off-by: Amar Tumballi Signed-off-by: Anand V. Avati BUG: 378 (trace segfault in trace_create_cbk) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=378 --- xlators/debug/trace/src/trace.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xlators/debug') diff --git a/xlators/debug/trace/src/trace.c b/xlators/debug/trace/src/trace.c index 16c12eb963b..6fe27c635f9 100644 --- a/xlators/debug/trace/src/trace.c +++ b/xlators/debug/trace/src/trace.c @@ -116,10 +116,10 @@ trace_create_cbk (call_frame_t *frame, if (statstr) FREE (statstr); - if (preparent) - FREE (preparent); - if (postparent) - FREE (postparent); + if (preparentstr) + FREE (preparentstr); + if (postparentstr) + FREE (postparentstr); } else { gf_log (this->name, GF_LOG_NORMAL, "%"PRId64": (op_ret=%d, op_errno=%d)", -- cgit