Memory leaks when used as a shared library
Maxim Dounin
mdounin at mdounin.ru
Sun Aug 2 02:55:29 UTC 2015
Hello!
On Fri, Jul 31, 2015 at 09:57:05PM -0400, xfeep wrote:
> I want to build nginx into a shared library for this feature of
> nginx-clojure: https://github.com/nginx-clojure/nginx-clojure/issues/86 .
> But i found that there's memory leaks after stop server but without exit the
> process. Then I tried valgrind to check a simple test without any 3rd party
> module.
Well, the answer is simple: nginx is not designed to be a shared
library. If you want to convert it to be one, it's you who are
responsible for cleaning up various global allocations.
--
Maxim Dounin
http://nginx.org/
More information about the nginx
mailing list