]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Add missing htmsg_destroy() call in hdhomerun_server_discover
authorFlole998 <Flole998@users.noreply.github.com>
Sun, 18 Feb 2024 23:50:08 +0000 (23:50 +0000)
committerFlole998 <Flole998@users.noreply.github.com>
Mon, 19 Feb 2024 11:10:42 +0000 (12:10 +0100)
src/webui/webui.c

index 359a8ba61534c01dbb959ce796fd26ea114ca815..8d48f3a0ca8eeb22af90e5ff8ee22a8ff371adfe 100644 (file)
@@ -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");