diff options
author | Amar Tumballi <amar@gluster.com> | 2009-11-12 19:48:54 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-11-13 02:13:29 -0800 |
commit | 18d85b59b9e8cc422c06e3ea94694d0cb2d26e1b (patch) | |
tree | b08a54b67b33434558833286687f3f92a269efd8 | |
parent | f9bb9dee5f92d50c4e87995680198e488a4f50ce (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
-rw-r--r-- | xlators/debug/trace/src/trace.c | 8 |
1 files changed, 4 insertions, 4 deletions
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)", |