Changeset 5296


Ignore:
Timestamp:
May 13, 2016 7:46:17 AM (8 years ago)
Author:
ming
Message:

Re #1917 (misc): Fixed memory leak in pj_stun_sock_start() if pj_getaddrinfo() fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjnath/stun_sock.c

    r4712 r5296  
    436436 
    437437            status = pj_getaddrinfo(stun_sock->af, domain, &cnt, &ai); 
    438             if (status != PJ_SUCCESS) 
     438            if (status != PJ_SUCCESS) { 
     439                pj_grp_lock_release(stun_sock->grp_lock); 
    439440                return status; 
     441            } 
    440442 
    441443            pj_sockaddr_cp(&stun_sock->srv_addr, &ai.ai_addr); 
Note: See TracChangeset for help on using the changeset viewer.