plug massive leak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10039 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-10-15 22:57:28 +00:00
parent 8ec42371bb
commit 75e1853733
1 changed files with 1 additions and 0 deletions

View File

@ -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_create(&thd_attr, sth->pool);
switch_threadattr_stacksize_set(thd_attr, SWITCH_SYSTEM_THREAD_STACKSIZE); 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); switch_thread_create(&thread, thd_attr, system_thread, sth, sth->pool);
if (wait) { if (wait) {