Browse Source

TT#14008 Fix use-after-free

Change-Id: I8d5164d44c944c43a6e30595720245b00f759399
Warned-by: coverity
pull/1439/head
Richard Fuchs 4 years ago
parent
commit
88c65686aa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/call.c

+ 1
- 1
daemon/call.c View File

@ -3484,10 +3484,10 @@ void call_media_free(struct call_media **mdp) {
t38_gateway_put(&md->t38_gateway); t38_gateway_put(&md->t38_gateway);
g_queue_clear_full(&md->sdp_attributes, free); g_queue_clear_full(&md->sdp_attributes, free);
mutex_destroy(&md->dtmf_lock); mutex_destroy(&md->dtmf_lock);
g_slice_free1(sizeof(*md), md);
g_queue_clear_full(&md->dtmf_recv, dtmf_event_free); g_queue_clear_full(&md->dtmf_recv, dtmf_event_free);
g_queue_clear_full(&md->dtmf_send, dtmf_event_free); g_queue_clear_full(&md->dtmf_send, dtmf_event_free);
mutex_destroy(&md->dtmf_lock); mutex_destroy(&md->dtmf_lock);
g_slice_free1(sizeof(*md), md);
*mdp = NULL; *mdp = NULL;
} }


Loading…
Cancel
Save