diff options
-rw-r--r-- | Objects/xxobject.c | 1 | ||||
-rw-r--r-- | Python/sysmodule.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Objects/xxobject.c b/Objects/xxobject.c index 8edf689..bfe9c84 100644 --- a/Objects/xxobject.c +++ b/Objects/xxobject.c @@ -35,6 +35,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. /* Xx objects */ #include "allobjects.h" +#include "modsupport.h" /* For getargs() etc. */ typedef struct { OB_HEAD diff --git a/Python/sysmodule.c b/Python/sysmodule.c index a12595c..3a6516f 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); |