afb-websock: Fix a double free
[src/app-framework-binder.git] / src / main.c
index e3f4251..dd518e3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015, 2016, 2017 "IoT.bzh"
+ * Copyright (C) 2015-2018 "IoT.bzh"
  * Author "Fulup Ar Foll"
  * Author José Bollo <jose.bollo@iot.bzh>
  *
@@ -585,6 +585,8 @@ static void start(int signum, void *arg)
                afb_hook_create_svc(NULL, main_config->tracesvc, NULL, NULL);
        if (main_config->traceevt)
                afb_hook_create_evt(NULL, main_config->traceevt, NULL, NULL);
+       if (main_config->traceses)
+               afb_hook_create_session(NULL, main_config->traceses, NULL, NULL);
 
        /* load bindings */
        afb_debug("start-load");