mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
memory: Don't use locks in xmlMemUsed
The Python tests call xmlMemUsed after xmlCleanupParser which doesn't work with statically allocated mutexes. This is only used for debugging, so a lock isn't necessary.
This commit is contained in:
parent
e414f82585
commit
1966382b34
@ -568,12 +568,7 @@ xmlMemoryStrdup(const char *str) {
|
||||
|
||||
int
|
||||
xmlMemUsed(void) {
|
||||
int res;
|
||||
|
||||
xmlMutexLock(&xmlMemMutex);
|
||||
res = debugMemSize;
|
||||
xmlMutexUnlock(&xmlMemMutex);
|
||||
return(res);
|
||||
return(debugMemSize);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user