Kaydet (Commit) 5c159bd8 authored tarafından Guido van Rossum's avatar Guido van Rossum

Plug memory leak (DECREF doc string properly after inserting in dict).

üst 7995ed20
......@@ -753,6 +753,7 @@ initbinascii()
d = PyModule_GetDict(m);
x = PyString_FromString(doc_binascii);
PyDict_SetItemString(d, "__doc__", x);
Py_XDECREF(x);
Error = PyString_FromString("binascii.Error");
PyDict_SetItemString(d, "Error", Error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment