Skip to content

Commit

Permalink
modules/ims_charging: fixed shm memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybeepee committed Jan 28, 2015
1 parent 63abc6f commit 873c62b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/ims_charging/ccr.c
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit 873c62b

Please sign in to comment.