TT#14008 avoid possible reference leak

Change-Id: I250697df090e58e04071bb4220a59f7788ad15c8
pull/1396/head
Richard Fuchs 5 years ago
parent 2dd5d7125f
commit 176e7bef67

@ -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