From 8909959e635151c5165cbab10cfb456275729c55 Mon Sep 17 00:00:00 2001 From: mquinson Date: Mon, 18 May 2009 08:32:17 +0000 Subject: [PATCH] xbt_ex_display(): do not free the exception after displaying This allows to do more with the given exception afterward. Users should call xbt_ex_free() themselves. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6281 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- ChangeLog | 5 +++++ src/xbt/ex.c | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e0f9f266dd..bda8f2c0ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24,6 +24,11 @@ SimGrid (3.4-svn) unstable; urgency=high * Add SIMIX_process_set_name() to change the name of the current process in the log messages. + XBT: + * xbt_ex_display(): do not free the exception after displaying + This allows to do more with the given exception afterward. + Users should call xbt_ex_free() themselves. + -- Da SimGrid team SimGrid (3.3) stable; urgency=high diff --git a/src/xbt/ex.c b/src/xbt/ex.c index 7c0714fcf8..6ffba19679 100644 --- a/src/xbt/ex.c +++ b/src/xbt/ex.c @@ -112,9 +112,6 @@ void xbt_ex_display(xbt_ex_t *e) { e->procname,thrower?thrower:" in this process"); CRITICAL1("%s",e->msg); - if (thrower) - free(thrower); - if (!e->remote && !e->bt_strings) xbt_ex_setup_backtrace(e); @@ -132,7 +129,6 @@ void xbt_ex_display(xbt_ex_t *e) { fprintf(stderr," at %s:%d:%s (no backtrace available on that arch)\n", e->file,e->line,e->func); #endif - xbt_ex_free(*e); } -- 2.20.1