libfuse / python-fuse

Python 2.x/3.x bindings for libfuse 2.x
GNU Lesser General Public License v2.1
285 stars 74 forks source link

Temporary object leak in MyString_AsEncodedPath() #33

Closed omeg closed 3 years ago

omeg commented 3 years ago

https://github.com/libfuse/python-fuse/blob/33f439ddd0986a1880dd791e32d7295ae434a0eb/fuseparts/_fusemodule.c#L99

PyUnicode_EncodeFSDefault() returns a new reference which should be DECREF'd.