From: Jaroslav Kysela Date: Mon, 25 May 2015 18:39:02 +0000 (+0200) Subject: DVR: Add missing profile_chain_close() call to the error path X-Git-Tag: v4.0.3~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7a7f146966c352443c3d2abbc7606ba64657a92;p=thirdparty%2Ftvheadend.git DVR: Add missing profile_chain_close() call to the error path Conflicts: src/dvr/dvr_rec.c --- diff --git a/src/dvr/dvr_rec.c b/src/dvr/dvr_rec.c index 617a3a2a9..dda442e56 100644 --- a/src/dvr/dvr_rec.c +++ b/src/dvr/dvr_rec.c @@ -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,