From: Michael Jerris Date: Wed, 15 Oct 2008 22:57:28 +0000 (+0000) Subject: plug massive leak X-Git-Tag: v1.0.2~789 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75e1853733fdd62b26f25a3f66059e9d6969ba56;p=thirdparty%2Ffreeswitch.git plug massive leak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10039 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core.c b/src/switch_core.c index b8bd229803..2cd220f728 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -1541,6 +1541,7 @@ SWITCH_DECLARE(int) switch_system(const char *cmd, switch_bool_t wait) switch_threadattr_create(&thd_attr, sth->pool); switch_threadattr_stacksize_set(thd_attr, SWITCH_SYSTEM_THREAD_STACKSIZE); + switch_threadattr_detach_set(thd_attr, 1); switch_thread_create(&thread, thd_attr, system_thread, sth, sth->pool); if (wait) {