Changeset 5584 for pjproject


Ignore:
Timestamp:
Apr 21, 2017 8:33:00 AM (7 years ago)
Author:
riza
Message:

Fix #2012: Prevent memory leak when rejecting a call from on_incoming_call()
callback.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r5535 r5584  
    131131    unsigned i; 
    132132 
     133    if (call->incoming_data) { 
     134        pjsip_rx_data_free_cloned(call->incoming_data); 
     135        call->incoming_data = NULL; 
     136    } 
    133137    pj_bzero(call, sizeof(*call)); 
    134138    call->index = id; 
Note: See TracChangeset for help on using the changeset viewer.