Changeset 1230:e72c9dad62ac in freeDiameter for libfdcore
- Timestamp:
- Jul 21, 2013, 6:57:39 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- libfdcore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/messages.c
r1228 r1230 388 388 /* Set the error code */ 389 389 CHECK_FCT( fd_msg_rescode_set(m, pei.pei_errcode, pei.pei_message, pei.pei_avp, 1 ) ); 390 391 /* free the pei AVP to avoid memory leak */ 392 if (pei.pei_avp_free) { 393 fd_msg_free(pei.pei_avp); 394 } 390 395 391 396 *msg = NULL; -
libfdcore/p_ce.c
r1191 r1230 637 637 CHECK_FCT_DO( fd_out_send(cer, *recv_cnx, NULL), goto destroy ); 638 638 639 if (error->pei_avp_free) { 640 fd_msg_free(error->pei_avp); 641 } 642 639 643 /* And now destroy this connection */ 640 644 destroy: -
libfdcore/routing_dispatch.c
r1216 r1230 610 610 fd_hook_call(HOOK_MESSAGE_PARSING_ERROR, msgptr, NULL, error_info.pei_message ?: error_info.pei_errcode, fd_msg_pmdl_get(msgptr)); 611 611 CHECK_FCT( return_error( &msgptr, error_info.pei_errcode, error_info.pei_message, error_info.pei_avp) ); 612 if (error_info.pei_avp_free) { fd_msg_free(error_info.pei_avp); } 612 613 return 0; 613 614 } else { … … 632 633 fd_hook_call(HOOK_MESSAGE_PARSING_ERROR, msgptr, NULL, error_info.pei_message ?: error_info.pei_errcode, fd_msg_pmdl_get(msgptr)); 633 634 CHECK_FCT( return_error( &msgptr, error_info.pei_errcode, error_info.pei_message, error_info.pei_avp) ); 635 if (error_info.pei_avp_free) { fd_msg_free(error_info.pei_avp); } 634 636 return 0; 635 637 } else { … … 656 658 fd_hook_call(HOOK_MESSAGE_PARSING_ERROR, msgptr, NULL, error_info.pei_message ?: error_info.pei_errcode, fd_msg_pmdl_get(msgptr)); 657 659 CHECK_FCT( return_error( &msgptr, error_info.pei_errcode, error_info.pei_message, error_info.pei_avp) ); 660 if (error_info.pei_avp_free) { fd_msg_free(error_info.pei_avp); } 658 661 return 0; 659 662 } else { … … 674 677 fd_hook_call(HOOK_MESSAGE_PARSING_ERROR, msgptr, NULL, error_info.pei_message ?: error_info.pei_errcode, fd_msg_pmdl_get(msgptr)); 675 678 CHECK_FCT( return_error( &msgptr, error_info.pei_errcode, error_info.pei_message, error_info.pei_avp) ); 679 if (error_info.pei_avp_free) { fd_msg_free(error_info.pei_avp); } 676 680 return 0; 677 681 } else { … … 932 936 if (error_info.pei_errcode) { 933 937 CHECK_FCT( return_error( &msgptr, error_info.pei_errcode, error_info.pei_message, error_info.pei_avp) ); 938 if (error_info.pei_avp_free) { fd_msg_free(error_info.pei_avp); } 934 939 return 0; 935 940 } else {
Note: See TracChangeset
for help on using the changeset viewer.