Changeset 5584


Ignore:
Timestamp:
04/21/17 03:33:00 (21 months 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.