[SGSN] Fix segfault ar PDP CTX DEACT time

We need to call rate_ctr_group_free() on the per-PDPctx-counters
This commit is contained in:
Harald Welte
2010-06-28 18:57:21 +02:00
parent a1d39a2a11
commit 376d5e521e

View File

@@ -205,6 +205,7 @@ struct sgsn_pdp_ctx *sgsn_pdp_ctx_alloc(struct sgsn_mm_ctx *mm,
void sgsn_pdp_ctx_free(struct sgsn_pdp_ctx *pdp)
{
rate_ctr_group_free(pdp->ctrg);
llist_del(&pdp->list);
llist_del(&pdp->g_list);
talloc_free(pdp);