aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/gprs_sgsn.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-06-28 18:57:21 +0200
committerHarald Welte <laforge@gnumonks.org>2010-06-28 18:57:21 +0200
commit376d5e521e2b77f892d10e744728882618330c8e (patch)
tree2fe6db153456a35c23c639528b4d5461696a862b /openbsc/src/gprs/gprs_sgsn.c
parenta1d39a2a11adfbbcbcc8d98c2c136eebd099bfe0 (diff)
[SGSN] Fix segfault ar PDP CTX DEACT time
We need to call rate_ctr_group_free() on the per-PDPctx-counters
Diffstat (limited to 'openbsc/src/gprs/gprs_sgsn.c')
-rw-r--r--openbsc/src/gprs/gprs_sgsn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gprs_sgsn.c b/openbsc/src/gprs/gprs_sgsn.c
index 9a76cee8e..ae18ea0fa 100644
--- a/openbsc/src/gprs/gprs_sgsn.c
+++ b/openbsc/src/gprs/gprs_sgsn.c
@@ -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);