|
From: Dennis L. <pla...@in...> - 2006-03-12 16:22:18
|
Am Sonntag, den 12.03.2006, 15:32 +0000 schrieb Bryan Meredith: > Omega addresses what I perceive to be one of the few shortfalls of the > excellent Valgrind Memcheck Tool - where Memcheck reports the location > that a leaked block was allocated, Omega also shows where it was leaked. Not that its bad to do that, but I think its better to say "Omega shows also where the last pointer/reference to the allocated memory was lost". Saying "I know were the memory was leaked" would imply to infer the ownership of the object for the cases multiple pointers refer to it. Who knows, maybe the pointer that would have been the one responsible to free the memory has been lost way before another one that has been copied around is lost. So, maybe Omega could be extended to give (optional of course) reports on where pointers to that memory were lost, in order to better figure out where you should have freed it. greets Dennis |