From 6f8ff4e3e44072c9959f3b4cf6038c65e8bb0883 Mon Sep 17 00:00:00 2001 From: MrDave Date: Thu, 24 Jun 2021 20:15:03 -0600 Subject: [PATCH] Fix leak on webcontrol headers --- src/webu.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/webu.cpp b/src/webu.cpp index 9cb1fbed..a13f4049 100644 --- a/src/webu.cpp +++ b/src/webu.cpp @@ -1344,6 +1344,12 @@ void webu_deinit(struct ctx_motapp *motapp) MHD_stop_daemon (motapp->webcontrol_daemon); } + util_parms_free(motapp->webcontrol_headers); + if (motapp->webcontrol_headers != NULL) { + free(motapp->webcontrol_headers); + } + motapp->webcontrol_headers = NULL; + } /* Start the webcontrol and streams */