summaryrefslogtreecommitdiffstats
path: root/runtime/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/sync.c')
-rw-r--r--runtime/sync.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/sync.c b/runtime/sync.c
index a3053e28..15d5c80f 100644
--- a/runtime/sync.c
+++ b/runtime/sync.c
@@ -28,12 +28,13 @@
#include "rsyslog.h"
#include "sync.h"
+#include "debug.h"
void
SyncObjInit(pthread_mutex_t **mut)
{
- *mut = (pthread_mutex_t *) malloc (sizeof (pthread_mutex_t));
+ *mut = (pthread_mutex_t *) MALLOC(sizeof (pthread_mutex_t));
pthread_mutex_init(*mut, NULL);
}