Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
htsp: add missing chain close call on error patch
  • Loading branch information
perexg committed Jun 13, 2015
1 parent c97d5e2 commit d1f9d8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/htsp_server.c
Expand Up @@ -2076,6 +2076,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");
}
Expand Down

0 comments on commit d1f9d8e

Please sign in to comment.