Navigation


Changeset 1230:e72c9dad62ac in freeDiameter for libfdcore/messages.c


Ignore:
Timestamp:
Jul 21, 2013, 6:57:39 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Fix issue with generating Failed-AVP when the error is DIAMETER_MISSING_AVP. Also fix a memory leak in that case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/messages.c

    r1228 r1230  
    388388                /* Set the error code */
    389389                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                }
    390395               
    391396                *msg = NULL;
Note: See TracChangeset for help on using the changeset viewer.