Python memory leaks?

后端 未结 2 425
天命终不由人
天命终不由人 2021-01-12 11:21

I am writing a python extension that seems to be leaking memory. I am trying to figure out the soure of the problem using valgrind.

However, it seems that python it

2条回答
  •  梦毁少年i
    2021-01-12 12:21

    The leak is most likely coming from your own extension, not from Python. Large systems often exit with memory still allocated, simply because it isn't worth it to explicitly free it if the process is about to end anyway.

提交回复
热议问题