From 4430ee70f2a2888853d944fe7de619e51880f515 Mon Sep 17 00:00:00 2001 From: Flole998 Date: Sun, 18 Feb 2024 23:50:08 +0000 Subject: [PATCH] Add missing htmsg_destroy() call in hdhomerun_server_discover --- src/webui/webui.c | 1 + 1 file changed, 1 insertion(+) 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"); -- 2.47.2