summaryrefslogtreecommitdiffstats
path: root/xlators/debug
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-11-12 19:48:54 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-13 02:13:29 -0800
commit18d85b59b9e8cc422c06e3ea94694d0cb2d26e1b (patch)
treeb08a54b67b33434558833286687f3f92a269efd8 /xlators/debug
parentf9bb9dee5f92d50c4e87995680198e488a4f50ce (diff)
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 <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 378 (trace segfault in trace_create_cbk) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=378
Diffstat (limited to 'xlators/debug')
-rw-r--r--xlators/debug/trace/src/trace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/debug/trace/src/trace.c b/xlators/debug/trace/src/trace.c
index 16c12eb..6fe27c6 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)",