Browse Source

TT#58050 fix refcount bug

Every packet_stream gets a send_timer allocated, but the teardown
routine skips the refcount decrease for fallback RTCP streams (when
rtcp-mux is in use), resulting in mem leak

fixes #753

Change-Id: Ib3a4ef8a81135918f08e28e127e4bb557b8ea05d
changes/90/29990/1
Richard Fuchs 7 years ago
parent
commit
573cd3ff22
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      daemon/call.c

+ 2
- 1
daemon/call.c View File

@ -2161,6 +2161,8 @@ void call_destroy(struct call *c) {
for (o = md->streams.head; o; o = o->next) {
ps = o->data;
send_timer_put(&ps->send_timer);
if (PS_ISSET(ps, FALLBACK_RTCP))
continue;
@ -2180,7 +2182,6 @@ void call_destroy(struct call *c) {
rtpe_now.tv_sec - atomic64_get(&ps->last_packet));
statistics_update_totals(ps);
send_timer_put(&ps->send_timer);
}


Loading…
Cancel
Save