]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
DVR: Add missing profile_chain_close() call to the error path
authorJaroslav Kysela <perex@perex.cz>
Mon, 25 May 2015 18:39:02 +0000 (20:39 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 25 May 2015 18:39:02 +0000 (20:39 +0200)
src/dvr/dvr_rec.c

index 900903a807ba0d6a32b52d8cb22529ede5b2c860..49a60dcda202403908198aff8e3eeb8b10390b6a 100644 (file)
@@ -110,6 +110,7 @@ dvr_rec_subscribe(dvr_entry_t *de)
   if (profile_chain_open(prch, &de->de_config->dvr_muxcnf, 0, 0)) {
     tvherror("dvr", "unable to create new channel streaming chain for '%s'",
              channel_get_name(de->de_channel));
+    profile_chain_close(prch);
     free(prch);
     return -1;
   }