DVR: Fix memory leaks
This commit is contained in:
parent
b9997bb64f
commit
2e017d6b64
2 changed files with 2 additions and 0 deletions
|
@ -1899,6 +1899,7 @@ dvr_destroy_by_channel(channel_t *ch, int delconf)
|
|||
while((de = LIST_FIRST(&ch->ch_dvrs)) != NULL) {
|
||||
LIST_REMOVE(de, de_channel_link);
|
||||
de->de_channel = NULL;
|
||||
free(de->de_channel_name);
|
||||
de->de_channel_name = strdup(channel_get_name(ch));
|
||||
dvr_entry_purge(de, delconf);
|
||||
}
|
||||
|
|
|
@ -215,6 +215,7 @@ timerec_entry_destroy(dvr_timerec_entry_t *dte, int delconf)
|
|||
LIST_REMOVE(dte, dte_config_link);
|
||||
|
||||
free(dte->dte_name);
|
||||
free(dte->dte_title);
|
||||
free(dte->dte_creator);
|
||||
free(dte->dte_comment);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue