]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
htsp: add missing chain close call on error patch
authorJaroslav Kysela <perex@perex.cz>
Sat, 13 Jun 2015 07:07:40 +0000 (09:07 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sat, 13 Jun 2015 07:46:30 +0000 (09:46 +0200)
src/htsp_server.c

index 4e63a0b474e1c4f45c12fba16bca96c87e25f480..94ba04d9ba146157348a8750637e19585f732be9 100644 (file)
@@ -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");
   }