From: Martin Quinson Date: Tue, 23 May 2017 23:15:55 +0000 (+0200) Subject: plug a small memleak X-Git-Tag: v3.16~228^2~8 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/759d4bbecaadc278d3c52882a6b9b4418d12c831 plug a small memleak --- diff --git a/src/xbt/xbt_os_thread.c b/src/xbt/xbt_os_thread.c index 613869ac81..b83e310022 100644 --- a/src/xbt/xbt_os_thread.c +++ b/src/xbt/xbt_os_thread.c @@ -122,6 +122,7 @@ void xbt_os_thread_mod_postexit(void) // if ((errcode=pthread_key_delete(xbt_self_thread_key))) // THROWF(system_error,errcode,"pthread_key_delete failed for xbt_self_thread_key"); + free(main_thread->name); free(main_thread); main_thread = NULL; thread_mod_inited = 0;