From: Phil L. <plo...@sa...> - 2014-05-27 14:27:24
|
In my application, I have a pool of memory which is allocated from the system heap, then stored in a linked list. I have used VALGRIND_CREATE_MEMPOOL and other annotations to tell memcheck about the memory pool and which memory blocks have been allocated from it, so that usage and access errors can be reported in terms of the memory pool. My problem is that the particular linked list implementation ends up using an interior pointer. What I'm finding is that when I shut down, I get "memory may be lost" errors for all of the blocks which are on the memory pool linked list. Is there an annotation I can use to disassociate the memory block from the system heap so that it is only associated with the linked-list memory pool? Phil ----- Phil Longstaff Senior Software Engineer x2904 |