diff options
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index a12595caa8..3a6516ffa4 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -102,7 +102,7 @@ sys_settrace(self, args) if (args == None) args = NULL; else - INCREF(args); + XINCREF(args); XDECREF(sys_trace); sys_trace = args; INCREF(None); @@ -117,7 +117,7 @@ sys_setprofile(self, args) if (args == None) args = NULL; else - INCREF(args); + XINCREF(args); XDECREF(sys_profile); sys_profile = args; INCREF(None); |