mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-23 01:52:48 +03:00
Stop calling xmlMemoryDump
This was used to check for memory leaks but could potentially create a .memdump file. These days, there are better ways to check for memory leaks.
This commit is contained in:
@@ -160,7 +160,6 @@ xmlMallocLoc(size_t size, const char * file, int line)
|
||||
if (size > (MAX_SIZE_T - RESERVE_SIZE)) {
|
||||
xmlGenericError(xmlGenericErrorContext,
|
||||
"xmlMallocLoc : Unsigned overflow\n");
|
||||
xmlMemoryDump();
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
@@ -169,7 +168,6 @@ xmlMallocLoc(size_t size, const char * file, int line)
|
||||
if (!p) {
|
||||
xmlGenericError(xmlGenericErrorContext,
|
||||
"xmlMallocLoc : Out of free space\n");
|
||||
xmlMemoryDump();
|
||||
return(NULL);
|
||||
}
|
||||
p->mh_tag = MEMTAG;
|
||||
@@ -236,7 +234,6 @@ xmlMallocAtomicLoc(size_t size, const char * file, int line)
|
||||
if (size > (MAX_SIZE_T - RESERVE_SIZE)) {
|
||||
xmlGenericError(xmlGenericErrorContext,
|
||||
"xmlMallocAtomicLoc : Unsigned overflow\n");
|
||||
xmlMemoryDump();
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
@@ -245,7 +242,6 @@ xmlMallocAtomicLoc(size_t size, const char * file, int line)
|
||||
if (!p) {
|
||||
xmlGenericError(xmlGenericErrorContext,
|
||||
"xmlMallocAtomicLoc : Out of free space\n");
|
||||
xmlMemoryDump();
|
||||
return(NULL);
|
||||
}
|
||||
p->mh_tag = MEMTAG;
|
||||
@@ -347,7 +343,6 @@ xmlReallocLoc(void *ptr,size_t size, const char * file, int line)
|
||||
if (size > (MAX_SIZE_T - RESERVE_SIZE)) {
|
||||
xmlGenericError(xmlGenericErrorContext,
|
||||
"xmlReallocLoc : Unsigned overflow\n");
|
||||
xmlMemoryDump();
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
@@ -501,7 +496,6 @@ xmlMemStrdupLoc(const char *str, const char *file, int line)
|
||||
if (size > (MAX_SIZE_T - RESERVE_SIZE)) {
|
||||
xmlGenericError(xmlGenericErrorContext,
|
||||
"xmlMemStrdupLoc : Unsigned overflow\n");
|
||||
xmlMemoryDump();
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user