Changeset 1293 for pjproject


Ignore:
Timestamp:
May 23, 2007 2:17:55 PM (18 years ago)
Author:
bennylp
Message:

Fixed ticket #292: Free memory read reported by Purify in PUBLISH session

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/pjsip/src/pjsip-simple/publishc.c

    r974 r1293  
    541541        /* Call callback. */ 
    542542        if (expiration == 0xFFFF) expiration = -1; 
     543 
     544        /* Temporarily increment pending_tsx to prevent callback from 
     545         * destroying pubc. 
     546         */ 
     547        ++pubc->pending_tsx; 
     548 
    543549        call_callback(pubc, PJ_SUCCESS, tsx->status_code,  
    544550                      (rdata ? &rdata->msg_info.msg->line.status.reason  
     
    546552                      rdata, expiration); 
    547553 
     554        --pubc->pending_tsx; 
    548555    } 
    549556 
Note: See TracChangeset for help on using the changeset viewer.