Module: kamailio Branch: master Commit: 873c62b03f1485fc0fd9b4af740f8dc882748ddc URL: https://github.com/kamailio/kamailio/commit/873c62b03f1485fc0fd9b4af740f8dc8...
Author: Jason Penton jason.penton@gmail.com Committer: Jason Penton jason.penton@gmail.com Date: 2015-01-28T14:44:43+02:00
modules/ims_charging: fixed shm memory leak
---
Modified: modules/ims_charging/ccr.c
---
Diff: https://github.com/kamailio/kamailio/commit/873c62b03f1485fc0fd9b4af740f8dc8... Patch: https://github.com/kamailio/kamailio/commit/873c62b03f1485fc0fd9b4af740f8dc8...
---
diff --git a/modules/ims_charging/ccr.c b/modules/ims_charging/ccr.c index 6392805..a315f87 100644 --- a/modules/ims_charging/ccr.c +++ b/modules/ims_charging/ccr.c @@ -105,6 +105,7 @@ int Ro_write_ims_information_avps(AAA_AVP_LIST * avp_list, ims_information_t* x) if (!cdp_avp->epcapp.add_Trunk_Group_Id(&aList2, &aList, 0)) goto error; + cdp_avp->cdp->AAAFreeAVPList(&aList); aList.head = aList.tail = 0; }
@@ -132,6 +133,7 @@ int Ro_write_ims_information_avps(AAA_AVP_LIST * avp_list, ims_information_t* x)
if (!cdp_avp->epcapp.add_Inter_Operator_Identifier(&aList2, &aList, 0)) goto error; + cdp_avp->cdp->AAAFreeAVPList(&aList); aList.head = aList.tail = 0; }
@@ -154,6 +156,7 @@ int Ro_write_ims_information_avps(AAA_AVP_LIST * avp_list, ims_information_t* x)
if (!cdp_avp->epcapp.add_Service_Specific_Info(&aList2, &aList, 0)) goto error; + cdp_avp->cdp->AAAFreeAVPList(&aList); aList.head = aList.tail = 0; }