Commit e217840
Anselm Kruis
Issue python#135: fix memory leaks of types with Stackless extensions.
Fix several problems related with slp_prepare_slots():
- set Py_TPFLAGS_HAVE_STACKLESS_EXTENSION in slp_prepare_slots().
- for heap types free the allocated buffer in tp_dealloc
- Allocate the memory from the object domain, because the blocks are
small (about 74 bytes).1 parent 709c150 commit e217840
2 files changed
Lines changed: 39 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3085 | 3085 | | |
3086 | 3086 | | |
3087 | 3087 | | |
| 3088 | + | |
| 3089 | + | |
| 3090 | + | |
| 3091 | + | |
| 3092 | + | |
| 3093 | + | |
| 3094 | + | |
| 3095 | + | |
| 3096 | + | |
| 3097 | + | |
| 3098 | + | |
| 3099 | + | |
| 3100 | + | |
| 3101 | + | |
| 3102 | + | |
| 3103 | + | |
| 3104 | + | |
3088 | 3105 | | |
3089 | 3106 | | |
3090 | 3107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1649 | 1649 | | |
1650 | 1650 | | |
1651 | 1651 | | |
1652 | | - | |
| 1652 | + | |
1653 | 1653 | | |
1654 | 1654 | | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
1655 | 1659 | | |
1656 | 1660 | | |
1657 | 1661 | | |
1658 | 1662 | | |
1659 | 1663 | | |
1660 | 1664 | | |
1661 | 1665 | | |
1662 | | - | |
| 1666 | + | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
1663 | 1675 | | |
1664 | 1676 | | |
1665 | 1677 | | |
1666 | | - | |
1667 | | - | |
| 1678 | + | |
1668 | 1679 | | |
1669 | 1680 | | |
1670 | 1681 | | |
1671 | | - | |
1672 | 1682 | | |
1673 | | - | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
1674 | 1689 | | |
| 1690 | + | |
1675 | 1691 | | |
1676 | 1692 | | |
1677 | 1693 | | |
| |||
1692 | 1708 | | |
1693 | 1709 | | |
1694 | 1710 | | |
1695 | | - | |
1696 | 1711 | | |
1697 | 1712 | | |
1698 | 1713 | | |
| |||
0 commit comments