Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33693ea commit e765f7dCopy full SHA for e765f7d
1 file changed
Python/sysmodule.c
@@ -1,5 +1,5 @@
1
/***********************************************************
2
-Copyright 1991 by Stichting Mathematisch Centrum, Amsterdam, The
+Copyright 1991, 1992 by Stichting Mathematisch Centrum, Amsterdam, The
3
Netherlands.
4
5
All Rights Reserved
@@ -101,7 +101,9 @@ sys_settrace(self, args)
101
{
102
if (args == None)
103
args = NULL;
104
- XINCREF(args);
+ else
105
+ INCREF(args);
106
+ XDECREF(sys_trace);
107
sys_trace = args;
108
INCREF(None);
109
return None;
@@ -114,7 +116,9 @@ sys_setprofile(self, args)
114
116
115
117
118
119
120
121
+ XDECREF(sys_profile);
122
sys_profile = args;
123
124
0 commit comments