diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2001-03-27 12:47:33 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2001-03-27 12:47:33 +0000 |
commit | 92ad210417f318c8f0142fd0aee8d2893d83b8e8 (patch) | |
tree | 03308d8014ae764458f3cd79ebfc26211bde14ce /xmlmemory.c | |
parent | 2be30641d1bc09321889b415cd0f5a2e24c1efb8 (diff) | |
download | android_external_libxml2-92ad210417f318c8f0142fd0aee8d2893d83b8e8.tar.gz android_external_libxml2-92ad210417f318c8f0142fd0aee8d2893d83b8e8.tar.bz2 android_external_libxml2-92ad210417f318c8f0142fd0aee8d2893d83b8e8.zip |
Spring cleanup ...: - configure.in Makefile.am config.h.in
Spring cleanup ...:
- configure.in Makefile.am config.h.in xmlversion.h.in: detect if
we need string functions
- trio.[ch] strio.[ch]: embedded the Trio-0.23 string functions
to be able to use them where needed. Applied some changes
to reduce name linking pollution and compile in only what's
needed.
- HTMLtree.c debugXML.c entities.c error.c nanoftp.c valid.c
xlink.c xmlversion.h.in xpath.c: got rid of the #ifdef
for the string manipulation functions
- xmlmemory.[ch]: removed DEBUG_MEMORY_FREED and added it automatically
to the free() function of xmlmemory.c
- entities.c HTMLtree.c parserInternals.c tree.c uri.c valid.c
xinclude.c xmlIO.c xpath.c xpointer.c: removed the MEM_CLEANUP
usage.
Daniel
Diffstat (limited to 'xmlmemory.c')
-rw-r--r-- | xmlmemory.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xmlmemory.c b/xmlmemory.c index 1cbeca2d..d693ba3a 100644 --- a/xmlmemory.c +++ b/xmlmemory.c @@ -283,9 +283,12 @@ void xmlMemFree(void *ptr) { MEMHDR *p; + char *target; TEST_POINT + target = (char *) ptr; + p = CLIENT_2_HDR(ptr); if (p->mh_tag != MEMTAG) { Mem_Tag_Err(p); @@ -293,6 +296,7 @@ xmlMemFree(void *ptr) } p->mh_tag = ~MEMTAG; debugMemSize -= p->mh_size; + memset(target, -1, p->mh_size); #ifdef MEM_LIST debugmem_list_delete(p); |