commit | 44d1eff028ad103a3f33699d0d62b0468664c103 | [log] [tgz] |
---|---|---|
author | MOD <mrmodbox@gmail.com> | Wed Sep 09 19:03:13 2009 +0200 |
committer | Daniel Veillard <veillard@redhat.com> | Wed Sep 09 19:03:13 2009 +0200 |
tree | ce9fc20d7141d7578f2e56a8ecf2d9edb346b030 | |
parent | 57f71aed7d03c5223f6e6636a0c930018ef93168 [diff] |
594514 memory leaks - duplicate initialization * globals.c: xmlInitGlobals() might be called multiple times, leaking the xmlThrDefMutex value
diff --git a/globals.c b/globals.c index 9b4a551..1f807d8 100644 --- a/globals.c +++ b/globals.c
@@ -46,7 +46,8 @@ */ void xmlInitGlobals(void) { - xmlThrDefMutex = xmlNewMutex(); + if (xmlThrDefMutex != NULL) + xmlThrDefMutex = xmlNewMutex(); } /**