summaryrefslogtreecommitdiffstats
path: root/Doc/ext/noddy3.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-05-25 17:59:38 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-05-25 17:59:38 (GMT)
commit8fb665a51aec51020e9e40ba1c29e6d86587eb4f (patch)
treef2a6752e0c48466f9cb947e1f259cfa175383952 /Doc/ext/noddy3.c
parent50d8b8b6ae320d08acc07601cca58cd52299ac76 (diff)
downloadcpython-8fb665a51aec51020e9e40ba1c29e6d86587eb4f.zip
cpython-8fb665a51aec51020e9e40ba1c29e6d86587eb4f.tar.gz
cpython-8fb665a51aec51020e9e40ba1c29e6d86587eb4f.tar.bz2
Fix ref counts in initialization code.
Diffstat (limited to 'Doc/ext/noddy3.c')
-rw-r--r--Doc/ext/noddy3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/ext/noddy3.c b/Doc/ext/noddy3.c
index 7b044d1..08ac31e 100644
--- a/Doc/ext/noddy3.c
+++ b/Doc/ext/noddy3.c
@@ -237,5 +237,6 @@ initnoddy3(void)
if (m == NULL)
return;
+ Py_INCREF(&NoddyType);
PyModule_AddObject(m, "Noddy", (PyObject *)&NoddyType);
}