Xiang Zhang added the comment:

The new patch is a try to solve the problems mentioned in this thread.

> It can be solved by making path->object referring an original argument (but 
> some code checks the type of path->object), or making path->object owning a 
> reference.

I prefer the later approach. There are codes relying on this behaviour 
(readlink).

----------
title: Fix memory leak in path_converter -> Fix memory leak and use-after-free 
in path_converter
type:  -> resource usage
Added file: http://bugs.python.org/file46162/path_converter-new.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29034>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to