Changeset 5121 for pjproject


Ignore:
Timestamp:
Jun 29, 2015 4:40:26 AM (9 years ago)
Author:
riza
Message:

Misc (re #1843): Check malloc return value on libRegisterThread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua2/endpoint.cpp

    r5076 r5121  
    13111311 
    13121312    desc = (pj_thread_desc*)malloc(sizeof(pj_thread_desc)); 
     1313    if (!desc) { 
     1314        PJSUA2_RAISE_ERROR(PJ_ENOMEM); 
     1315    } 
     1316 
    13131317    status = pj_thread_register(name.c_str(), *desc, &thread); 
    13141318    if (status == PJ_SUCCESS) { 
Note: See TracChangeset for help on using the changeset viewer.