]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
plug massive leak
authorMichael Jerris <mike@jerris.com>
Wed, 15 Oct 2008 22:57:28 +0000 (22:57 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 15 Oct 2008 22:57:28 +0000 (22:57 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10039 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core.c

index b8bd229803c27fc93a7aba94b3db0b6d0ce15106..2cd220f7280e832ac3cf9fec2dde52ab2c655c26 100644 (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_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) {