mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-17 02:34:44 +03:00
Decrement reference count
This commit is contained in:
parent
26c79343ec
commit
879cd71c3f
|
@ -372,7 +372,9 @@ fname2char(PyObject *fname) {
|
|||
if (bytes == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
return PyBytes_AsString(bytes);
|
||||
char* libname = PyBytes_AsString(bytes);
|
||||
Py_DECREF(bytes);
|
||||
return libname;
|
||||
}
|
||||
|
||||
#include <dlfcn.h>
|
||||
|
|
Loading…
Reference in New Issue
Block a user