diff options
author | Guido van Rossum <guido@python.org> | 1997-08-04 23:55:25 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-08-04 23:55:25 (GMT) |
commit | 5c159bd855514738fc3e233432cb30a5f4b55edb (patch) | |
tree | 53672632d3ff0d111f56f9b32472129fe4cccef4 /Modules/binascii.c | |
parent | 7995ed204a8bca2e919c34ac3e039935b6ca7ba9 (diff) | |
download | cpython-5c159bd855514738fc3e233432cb30a5f4b55edb.zip cpython-5c159bd855514738fc3e233432cb30a5f4b55edb.tar.gz cpython-5c159bd855514738fc3e233432cb30a5f4b55edb.tar.bz2 |
Plug memory leak (DECREF doc string properly after inserting in dict).
Diffstat (limited to 'Modules/binascii.c')
-rw-r--r-- | Modules/binascii.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/binascii.c b/Modules/binascii.c index 7e03799..0cd8ffc 100644 --- a/Modules/binascii.c +++ b/Modules/binascii.c @@ -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); |