| 741 | #endif |
| 742 | |
| 743 | int omIsInKeptAddrList(void* addr) |
| 744 | { |
| 745 | void* ptr = om_KeptAddr; |
| 746 | int ret = 0; |
| 747 | |
| 748 | #ifdef OM_HAVE_TRACK |
| 749 | if (omIsTrackAddr(addr)) |
| 750 | addr = omOutAddr_2_TrackAddr(addr); |
| 751 | #endif |
| 752 | |
| 753 | if (om_LastKeptAddr != NULL) |
| 754 | *((void**) om_LastKeptAddr) = om_AlwaysKeptAddrs; |
| 755 | |
| 756 | while (ptr != NULL) |
| 757 | { |
| 758 | if (ptr == addr) |
| 759 | { |
| 760 | ret = 1; break; |
| 761 | } |
| 762 | ptr = *((void**) ptr); |
| 763 | } |
| 764 | |
| 765 | if (om_LastKeptAddr != NULL) |
| 766 | *((void**) om_LastKeptAddr) = NULL; |
| 767 | |
| 768 | return ret; |
| 769 | } |
| 770 | #endif /*!OM_NDEBUG*/ |
| 771 | #endif |
no test coverage detected