]> 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 20:02:53 +0000 (22:02 +0200)
Conflicts:
src/dvr/dvr_rec.c

src/dvr/dvr_rec.c

index 617a3a2a97cd407c0c7f46f0225a1e4053449b30..dda442e564e8f0f88d82fbb815e9941b43be8bdb 100644 (file)
@@ -82,7 +82,9 @@ 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));
-    return;
+    profile_chain_close(prch);
+    free(prch);
+    return -1;
   }
 
   de->de_s = subscription_create_from_channel(prch, NULL, weight,