1
0
Fork 0
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:
winlin 2016-09-05 14:13:37 +08:00
parent 6ec60b0a21
commit c7b97aa1c3
8 changed files with 103 additions and 4 deletions

View file

@ -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