mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix st thread exit bug, never implict invoke the st_thread_exit, which may cause memory leak. 0.9.112
This commit is contained in:
parent
12c29356d3
commit
5f7bacf678
8 changed files with 424 additions and 342 deletions
|
@ -176,7 +176,9 @@ void* SrsThread::thread_fun(void* arg)
|
|||
|
||||
obj->thread_cycle();
|
||||
|
||||
st_thread_exit(NULL);
|
||||
// never use the following exit function,
|
||||
// it will cause the SRS memory leak.
|
||||
//st_thread_exit(NULL);
|
||||
|
||||
return NULL;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue