Commit aa0ec1fc authored by Stefan Behnel's avatar Stefan Behnel

reset to None instead of NULL in tp_clear()

parent b9ff2956
......@@ -767,7 +767,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln("}")
for entry in py_attrs:
name = "p->%s" % entry.cname
code.putln("tmp = %s; %s = 0;" % (name, name))
code.putln("tmp = %s;" % name)
code.put_init_to_py_none(name, entry.type)
code.putln("Py_XDECREF(tmp);")
code.putln(
"return 0;")
......
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