diff --git a/src/suricata.c b/src/suricata.c index 4b77edf240..f3b6d4f985 100644 --- a/src/suricata.c +++ b/src/suricata.c @@ -2772,6 +2772,7 @@ int main(int argc, char **argv) #endif ConfDeInit(); + SCLogDeInitLogModule(); DetectParseFreeRegexes(); exit(engine_retval); } diff --git a/src/util-debug.c b/src/util-debug.c index 6e71102a90..a55a559906 100644 --- a/src/util-debug.c +++ b/src/util-debug.c @@ -713,6 +713,7 @@ error: fclose(iface_ctx->file_d); iface_ctx->file_d = NULL; } + SCFree(iface_ctx); return NULL; }