Changeset 79:eb93cda82b14
- 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
| r4 |
r79 |
|
| 369 | 369 | else |
|---|
| 370 | 370 | 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 | { |
|---|
| 375 | 374 | osip_list_remove_element(via->via_params, received); |
|---|
| | 375 | osip_uri_param_free(received); |
|---|
| | 376 | } |
|---|
| | 377 | |
|---|
| | 378 | if (rport) |
|---|
| | 379 | { |
|---|
| 376 | 380 | osip_list_remove_element(via->via_params, rport); |
|---|
| 377 | | // ] MINH |
|---|
| | 381 | osip_uri_param_free(rport); |
|---|
| | 382 | } |
|---|
| | 383 | |
|---|
| 378 | 384 | i = osip->cb_send_message (nist, nist->last_response, host, |
|---|
| 379 | 385 | port, nist->out_socket); |
|---|
| r15 |
r79 |
|
| 2956 | 2956 | eXosip_quit(); |
|---|
| 2957 | 2957 | |
|---|
| | 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 | |
|---|
| 2958 | 2966 | #ifdef USE_HTTP_TUNNEL |
|---|
| 2959 | 2967 | if (phTunnel) |
|---|