mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Memory Leak, missing Py_DECREF
This commit is contained in:
parent
d64b2376bc
commit
c154fd05fd
1
encode.c
1
encode.c
|
@ -579,6 +579,7 @@ static unsigned int* get_qtables_arrays(PyObject* qtables, int* qtablesLen) {
|
||||||
for (j = 0; j < DCTSIZE2; j++) {
|
for (j = 0; j < DCTSIZE2; j++) {
|
||||||
qarrays[i * DCTSIZE2 + j] = PyInt_AS_LONG(PySequence_Fast_GET_ITEM(table_data, j));
|
qarrays[i * DCTSIZE2 + j] = PyInt_AS_LONG(PySequence_Fast_GET_ITEM(table_data, j));
|
||||||
}
|
}
|
||||||
|
Py_DECREF(table_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
*qtablesLen = num_tables;
|
*qtablesLen = num_tables;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user