… | |
… | |
1598 | { |
1598 | { |
1599 | #if CORO_USE_VALGRIND |
1599 | #if CORO_USE_VALGRIND |
1600 | VALGRIND_STACK_DEREGISTER (cctx->valgrind_id); |
1600 | VALGRIND_STACK_DEREGISTER (cctx->valgrind_id); |
1601 | #endif |
1601 | #endif |
1602 | |
1602 | |
1603 | #if HAVE_MMAP |
1603 | #if HAVE_MMAP |
1604 | if (cctx->flags & CC_MAPPED) |
1604 | if (cctx->flags & CC_MAPPED) |
1605 | munmap (cctx->sptr, cctx->ssize); |
1605 | munmap (cctx->sptr, cctx->ssize); |
1606 | else |
1606 | else |
1607 | #endif |
1607 | #endif |
1608 | Safefree (cctx->sptr); |
1608 | Safefree (cctx->sptr); |
1609 | } |
1609 | } |
1610 | |
1610 | |
1611 | Safefree (cctx); |
1611 | Safefree (cctx); |
1612 | } |
1612 | } |
1613 | |
1613 | |