1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

couple of memory fixes from Mark Vakoc reported by Purify on Windows.

* threads.c uri.c: couple of memory fixes from Mark Vakoc reported
  by Purify on Windows.
Daniel
This commit is contained in:
Daniel Veillard
2004-09-22 21:57:53 +00:00
parent 4edd3ed8c5
commit 8399ff337e
4 changed files with 255 additions and 248 deletions

View File

@@ -369,6 +369,8 @@ xmlRMutexUnlock(xmlRMutexPtr tok ATTRIBUTE_UNUSED)
static void
xmlFreeGlobalState(void *state)
{
/* free any memory allocated in the thread's xmlLastError */
xmlResetLastError();
free(state);
}