X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/da7e15623cc3e43bd5b30848b1b2283af9470b5c..614783abcb28c771ad302252888494fe36da2bd8:/src/xbt/context.c diff --git a/src/xbt/context.c b/src/xbt/context.c index 0d3f5876e9..e67c2ce1eb 100644 --- a/src/xbt/context.c +++ b/src/xbt/context.c @@ -99,6 +99,7 @@ static void xbt_context_destroy(xbt_context_t context) pthread_mutex_destroy(&(context->mutex)); pthread_cond_destroy(&(context->cond)); #endif + if(context->exception) free(context->exception); free(context); return; } @@ -320,7 +321,6 @@ void xbt_context_free(xbt_context_t context) for(i=0;iargc; i++) if(context->argv[i]) free(context->argv[i]); if(context->argv) free(context->argv); - if(context->exception) free(context->exception); if(context->cleanup_func) context->cleanup_func(context->cleanup_arg);