Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
input: fix possible memory leak
This might never happen, but loop to check for existing owner would then
be redundant.
  • Loading branch information
adamsutton committed Jan 10, 2016
1 parent dfae393 commit b66fbaa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/input/mpegts/mpegts_input.c
Expand Up @@ -475,6 +475,9 @@ mpegts_input_open_pid
tvhdebug("mpegts", "%s - open PID %s subscription [%04x/%p]",
buf, (type & MPS_TABLES) ? "tables" : "fullmux", type, owner);
mm->mm_update_pids_flag = 1;
} else {
free(mps);
mp = NULL;
}
} else if (!RB_INSERT_SORTED(&mp->mp_subs, mps, mps_link, mpegts_mps_cmp)) {
mp->mp_type |= type;
Expand Down

0 comments on commit b66fbaa

Please sign in to comment.