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 4c5be0c commit 57b17adCopy full SHA for 57b17ad
1 file changed
Objects/obmalloc.c
@@ -686,6 +686,7 @@ _PyMalloc_Free(void *p)
686
* was full and is in no list -- it's not in the freeblocks
687
* list in any case).
688
*/
689
+ assert(pool->ref.count > 0); /* else it was empty */
690
*(block **)p = lastfree = pool->freeblock;
691
pool->freeblock = (block *)p;
692
if (lastfree) {
0 commit comments