Browse Source

TT#14008 avoid possible reference leak

Change-Id: I250697df090e58e04071bb4220a59f7788ad15c8
pull/1396/head
Richard Fuchs 4 years ago
parent
commit
176e7bef67
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      daemon/media_socket.c

+ 2
- 0
daemon/media_socket.c View File

@ -1678,6 +1678,8 @@ static bool __stream_ssrc_inout(struct packet_stream *ps, uint32_t ssrc, mutex_t
}
// extract and hold entry (ctx_idx == 0)
if (*output)
ssrc_ctx_put(output);
*output = list[0];
ssrc_ctx_hold(*output);


Loading…
Cancel
Save