From: Jaroslav Kysela Date: Sat, 13 Jun 2015 07:07:40 +0000 (+0200) Subject: htsp: add missing chain close call on error patch X-Git-Tag: v4.0.5~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=24f71324047e70d126265b307666692b9781e152;p=thirdparty%2Ftvheadend.git htsp: add missing chain close call on error patch --- diff --git a/src/htsp_server.c b/src/htsp_server.c index 4e63a0b47..94ba04d9b 100644 --- a/src/htsp_server.c +++ b/src/htsp_server.c @@ -2024,6 +2024,7 @@ htsp_method_subscribe(htsp_connection_t *htsp, htsmsg_t *in) profile_chain_init(&hs->hs_prch, pro, ch); if (profile_chain_work(&hs->hs_prch, &hs->hs_input, timeshiftPeriod, 0)) { tvhlog(LOG_ERR, "htsp", "unable to create profile chain '%s'", pro->pro_name); + profile_chain_close(&hs->hs_prch); free(hs); return htsp_error("Stream setup error"); }