I have tried gcc 7.4 and and 5.3. Many asan "t" tests failed with memory leak detected in Nginx.
These are singlton objects, allocated only once during the whole process, such as api_manager object.
it is due to master process and worker process issue. If a memory is allocated in master, it should be freed in master. But we may only free it in worker process.
Some are simple fixes, other there are still many other places need to clean up.
I have tried gcc 7.4 and and 5.3. Many asan "t" tests failed with memory leak detected in Nginx.
These are singlton objects, allocated only once during the whole process, such as api_manager object.
it is due to master process and worker process issue. If a memory is allocated in master, it should be freed in master. But we may only free it in worker process.
Some are simple fixes, other there are still many other places need to clean up.