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

------------------------------------------------------------------------------
The best possible search technologies are now affordable for all companies.
Download your FREE open source Enterprise Search Engine today!
Our experts will assist you in its installation for $59/mo, no commitment.
Test it for FREE on our Cloud platform anytime!
http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to