Changeset 79:eb93cda82b14

Show
Ignore:
Timestamp:
09/25/06 11:32:51 (2 years ago)
Author:
vadim@mbdsys.com
Message:

memory leak fix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libosip2/src/osip2/nist_fsm.c

    r4 r79  
    369369      else 
    370370        port = osip_atoi (rport->gvalue); 
    371 // MINH [ 
    372 // Remove the received tag from the first via before sending the response 
    373 // This is to make sure that the response will pass through the right server  
    374 // if there are many servers behind a NAT or LVS 
     371       
     372      if (received)  
     373        { 
    375374          osip_list_remove_element(via->via_params, received); 
     375          osip_uri_param_free(received); 
     376        } 
     377 
     378      if (rport) 
     379        { 
    376380          osip_list_remove_element(via->via_params, rport); 
    377 // ] MINH 
     381          osip_uri_param_free(rport); 
     382        } 
     383 
    378384      i = osip->cb_send_message (nist, nist->last_response, host, 
    379385                                 port, nist->out_socket); 
  • phapi/phapi.c

    r15 r79  
    29562956  eXosip_quit(); 
    29572957   
     2958 for(i = 0; i < PH_MAX_VLINES; i++) 
     2959  {  
     2960    struct vline *vl = ph_vlid2vline(i+1); 
     2961    if (vl)         
     2962      vline_free(vl); 
     2963  } 
     2964 
     2965 
    29582966#ifdef USE_HTTP_TUNNEL 
    29592967  if (phTunnel)