Fix leak on webcontrol headers

This commit is contained in:
MrDave
2021-06-24 20:15:03 -06:00
committed by Mr-Dave
parent 27085bac89
commit 6f8ff4e3e4

View File

@@ -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 */