Ignore:
Timestamp:
Dec 17, 2008 2:28:18 PM (14 years ago)
Author:
bennylp
Message:

Ticket 684: protect the memory allocation for TX packet with try/catch, and fixed various transmit data buffer leaks when transmission fails immediately

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_util.c

    r2372 r2380  
    16741674    /* Send! */ 
    16751675    status = pjsip_endpt_send_response( endpt, &res_addr, tdata, NULL, NULL ); 
    1676  
    1677     return status; 
     1676    if (status != PJ_SUCCESS) { 
     1677        pjsip_tx_data_dec_ref(tdata); 
     1678        return status; 
     1679    } 
     1680 
     1681    return PJ_SUCCESS; 
    16781682} 
    16791683 
Note: See TracChangeset for help on using the changeset viewer.