Ignore:
Timestamp:
May 28, 2007 12:10:35 PM (17 years ago)
Author:
bennylp
Message:

Fixed mutex leak in pjlib test (ioqueue unregistration test). Thanks Deanna Phillips

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pjlib-test/ioq_unreg.c

    r1235 r1309  
    7575 
    7676    if (sock_data.unregistered) { 
    77         /* No need to unlock. Mutex may have been destroyed */ 
     77        pj_mutex_unlock(sock_data.mutex); 
    7878        return; 
    7979    } 
     
    254254            sock_data.unregistered = 1; 
    255255            pj_ioqueue_unregister(sock_data.key); 
     256            pj_mutex_unlock(sock_data.mutex); 
    256257            pj_mutex_destroy(sock_data.mutex); 
    257258            pj_pool_release(sock_data.pool); 
Note: See TracChangeset for help on using the changeset viewer.