From: Adrian M. <ad...@co...> - 2009-02-24 15:42:03
|
I found a potential memory leak in flush_error_queue@util.c using Py_DECREF macro with a function call inside. Since macros expand its argument n times ( as Py_DECREF does, where n > 1 ) this call could be generated n times. In this case error_queue_to_list allocates a PyList object and transfer the ownership of the pointer to the caller function. Im attaching a simple patch cheers a/ |