diff options
author | Mike Hommey <glandium@debian.org> | 2008-01-19 17:16:58 +0100 |
---|---|---|
committer | Mike Hommey <glandium@debian.org> | 2008-01-19 17:16:58 +0100 |
commit | fc760252aba4054a612dd20b803d0c7c19713064 (patch) | |
tree | 088f8e29a5ed82c5417869894c17ba72f715d7a6 /xmlmemory.c | |
parent | c69572cb9f2467259a73de64c08e141f21f17fa8 (diff) | |
download | libxml2-fc760252aba4054a612dd20b803d0c7c19713064.tar.gz |
Load /tmp/libxml2-2.6.31 intoupstream/2.6.31.dfsg
libxml2/branches/upstream/current.
Diffstat (limited to 'xmlmemory.c')
-rw-r--r-- | xmlmemory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmlmemory.c b/xmlmemory.c index 362a0b0..f9019a4 100644 --- a/xmlmemory.c +++ b/xmlmemory.c @@ -409,6 +409,9 @@ xmlMemFree(void *ptr) size_t size; #endif + if (ptr == NULL) + return; + if (ptr == (void *) -1) { xmlGenericError(xmlGenericErrorContext, "trying to free pointer from freed area\n"); |