added the call to the breakpoint routine when a monitored block is
* xmlmemory.c: added the call to the breakpoint routine
when a monitored block is reallocated or freed
Daniel
diff --git a/xmlmemory.c b/xmlmemory.c
index 2216b70..1bbc315 100644
--- a/xmlmemory.c
+++ b/xmlmemory.c
@@ -325,6 +325,7 @@
p = CLIENT_2_HDR(ptr);
number = p->mh_number;
+ if (xmlMemStopAtBlock == number) xmlMallocBreakpoint();
if (p->mh_tag != MEMTAG) {
Mem_Tag_Err(p);
goto error;
@@ -429,6 +430,7 @@
Mem_Tag_Err(p);
goto error;
}
+ if (xmlMemStopAtBlock == p->mh_number) xmlMallocBreakpoint();
p->mh_tag = ~MEMTAG;
memset(target, -1, p->mh_size);
xmlMutexLock(xmlMemMutex);