From: Flole998 Date: Sun, 18 Feb 2024 23:50:08 +0000 (+0000) Subject: Add missing htmsg_destroy() call in hdhomerun_server_discover X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4430ee70f2a2888853d944fe7de619e51880f515;p=thirdparty%2Ftvheadend.git Add missing htmsg_destroy() call in hdhomerun_server_discover --- diff --git a/src/webui/webui.c b/src/webui/webui.c index 359a8ba61..8d48f3a0c 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -1970,6 +1970,7 @@ hdhomerun_server_discover(http_connection_t *hc, const char *remain, void *opaqu htsmsg_add_u32(msg, "TunerCount", config.hdhomerun_server_tuner_count ?: 6); char *json = htsmsg_json_serialize_to_str(msg, 1); + htsmsg_destroy(msg); htsbuf_append_str(hq, json); free(json); http_output_content(hc, "application/json");