mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SmartPtr: Support detect memory leak by valgrind. v6.0.132 (#4102)
1. Support detect memory leak by valgrind. 2. Free the http handler entry. 3. Free the stack of ST. --- Co-authored-by: Jacob Su <suzp1984@gmail.com>
This commit is contained in:
parent
ea7e2c2849
commit
7ab012c60f
18 changed files with 286 additions and 69 deletions
|
@ -88,6 +88,9 @@ extern void srs_free_global_system_ips();
|
|||
extern void asan_report_callback(const char* str);
|
||||
#endif
|
||||
|
||||
extern SrsPps* _srs_pps_cids_get;
|
||||
extern SrsPps* _srs_pps_cids_set;
|
||||
|
||||
/**
|
||||
* main entrance.
|
||||
*/
|
||||
|
@ -522,6 +525,10 @@ srs_error_t run_hybrid_server(void* /*arg*/)
|
|||
// After all done, stop and cleanup.
|
||||
_srs_hybrid->stop();
|
||||
|
||||
// Dispose all global objects, note that we should do this in the hybrid thread, because it may
|
||||
// depend on the ST when disposing.
|
||||
srs_global_dispose();
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue