mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix memory leak at source. 2.0.214
This commit is contained in:
parent
6ec60b0a21
commit
c7b97aa1c3
8 changed files with 103 additions and 4 deletions
|
@ -866,6 +866,11 @@ int SrsServer::cycle()
|
|||
srs_warn("main cycle terminated, system quit normally.");
|
||||
dispose();
|
||||
srs_trace("srs terminated");
|
||||
|
||||
// for valgrind to detect.
|
||||
srs_freep(_srs_config);
|
||||
srs_freep(_srs_log);
|
||||
|
||||
exit(0);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue