Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: Fix memory leaks
  • Loading branch information
perexg committed Sep 17, 2014
1 parent b9997bb commit 2e017d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/dvr/dvr_db.c
Expand Up @@ -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);
}
Expand Down
1 change: 1 addition & 0 deletions src/dvr/dvr_timerec.c
Expand Up @@ -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);

Expand Down

0 comments on commit 2e017d6

Please sign in to comment.