diff options
Diffstat (limited to 'ndb/src/common/portlib/NdbMutex.c')
-rw-r--r-- | ndb/src/common/portlib/NdbMutex.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ndb/src/common/portlib/NdbMutex.c b/ndb/src/common/portlib/NdbMutex.c index 50f314d2683..d3d39ea8cf7 100644 --- a/ndb/src/common/portlib/NdbMutex.c +++ b/ndb/src/common/portlib/NdbMutex.c @@ -19,13 +19,14 @@ #include <NdbThread.h> #include <NdbMutex.h> +#include <NdbMem.h> NdbMutex* NdbMutex_Create(void) { NdbMutex* pNdbMutex; int result; - pNdbMutex = (NdbMutex*)malloc(sizeof(NdbMutex)); + pNdbMutex = (NdbMutex*)NdbMem_Allocate(sizeof(NdbMutex)); if (pNdbMutex == NULL) return NULL; |