aboutsummaryrefslogtreecommitdiffstats
path: root/ctrl/facemgr/src/loop_dispatcher.c
diff options
context:
space:
mode:
Diffstat (limited to 'ctrl/facemgr/src/loop_dispatcher.c')
-rw-r--r--ctrl/facemgr/src/loop_dispatcher.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ctrl/facemgr/src/loop_dispatcher.c b/ctrl/facemgr/src/loop_dispatcher.c
index d2177ba21..499a1ccac 100644
--- a/ctrl/facemgr/src/loop_dispatcher.c
+++ b/ctrl/facemgr/src/loop_dispatcher.c
@@ -39,7 +39,14 @@ struct loop_s {
loop_t *
loop_create()
{
- /* Nothing to do */
+ loop_t * loop = malloc(sizeof(loop_t));
+ if (!loop) {
+ ERROR("[loop_create] Failed to allocate memory");
+ goto ERR_MALLOC;
+ }
+ return loop;
+
+ERR_MALLOC:
return NULL;
}