unix-manager: fix ressource leak when init fail

pull/1821/head
Eric Leblond 10 years ago committed by Victor Julien
parent f9faf990fb
commit 384db27800

@ -858,6 +858,7 @@ static TmEcode UnixManagerThreadInit(ThreadVars *t, void *initdata, void **data)
if (ConfGetBool("engine.init-failure-fatal", &failure_fatal) != 1) { if (ConfGetBool("engine.init-failure-fatal", &failure_fatal) != 1) {
SCLogDebug("ConfGetBool could not load the value."); SCLogDebug("ConfGetBool could not load the value.");
} }
SCFree(utd);
if (failure_fatal) { if (failure_fatal) {
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} else { } else {

Loading…
Cancel
Save