Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
descrambler: fix two memory leaks
  • Loading branch information
perexg committed Sep 22, 2014
1 parent b2bdcb3 commit e003240
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/descrambler/descrambler.c
Expand Up @@ -606,6 +606,7 @@ descrambler_close_pid_( mpegts_mux_t *mux, void *opaque, int pid )
mpegts_table_destroy(dt->table);
free(dt);
}
free(ds);
tvhtrace("descrambler", "mux %p close pid %04X (%i)", mux, pid, pid);
return 1;
}
Expand Down Expand Up @@ -651,6 +652,7 @@ descrambler_flush_tables( mpegts_mux_t *mux )
free(des->last_data);
free(des);
}
free(ds);
}
TAILQ_REMOVE(&mux->mm_descrambler_tables, dt, link);
mpegts_table_destroy(dt->table);
Expand Down

0 comments on commit e003240

Please sign in to comment.