Commit 18ffe20c authored by Daniel Veillard's avatar Daniel Veillard

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
parent 351f2d6e
Thu Apr 14 20:52:41 CEST 2005 Daniel Veillard <daniel@veillard.com>
* xmlmemory.c: added the call to the breakpoint routine
when a monitored block is reallocated or freed
Wed Apr 13 05:55:51 CEST 2005 Daniel Veillard <daniel@veillard.com>
* nanohttp.c: applied patch from Aron Stansvik for bug #172525
......
......@@ -325,6 +325,7 @@ xmlReallocLoc(void *ptr,size_t size, const char * file, int line)
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 @@ xmlMemFree(void *ptr)
Mem_Tag_Err(p);
goto error;
}
if (xmlMemStopAtBlock == p->mh_number) xmlMallocBreakpoint();
p->mh_tag = ~MEMTAG;
memset(target, -1, p->mh_size);
xmlMutexLock(xmlMemMutex);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment