mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
PyInit_zlib(): Plug a small memory leak. Jeremy is looking into the
more severe ones.
This commit is contained in:
parent
703b70e260
commit
30aa1e7d31
1 changed files with 1 additions and 0 deletions
|
@ -834,4 +834,5 @@ PyInit_zlib()
|
||||||
|
|
||||||
ver = PyString_FromString(ZLIB_VERSION);
|
ver = PyString_FromString(ZLIB_VERSION);
|
||||||
PyDict_SetItemString(d, "ZLIB_VERSION", ver);
|
PyDict_SetItemString(d, "ZLIB_VERSION", ver);
|
||||||
|
Py_DECREF(ver);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue