mirror of
https://github.com/python/cpython.git
synced 2025-07-15 23:35:23 +00:00
fix memory leak and null pointer dereference
This commit is contained in:
parent
946805d418
commit
c206c766dd
2 changed files with 6 additions and 2 deletions
|
@ -523,6 +523,8 @@ int_pow(v, w, z)
|
|||
XDECREF(t2);
|
||||
return(NULL);
|
||||
}
|
||||
DECREF(t1);
|
||||
DECREF(t2);
|
||||
ix=mod;
|
||||
}
|
||||
return newintobject(ix);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue