commit | a62a6310206caa55d091734ec32ad2da644c361a | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Fri Aug 29 09:49:30 2014 +0200 |
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | Fri Aug 29 11:42:26 2014 +0200 |
tree | 0d83950e14385e49e404ba3ba28935d2d3088241 | |
parent | 5c6159381135b20b29a4fa98ab8372a5f70eb760 [diff] |
nat: Remove the entry from the list before we destroy it
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat_utils.c b/openbsc/src/osmo-bsc_nat/bsc_nat_utils.c index 14ea308..93831c4 100644 --- a/openbsc/src/osmo-bsc_nat/bsc_nat_utils.c +++ b/openbsc/src/osmo-bsc_nat/bsc_nat_utils.c
@@ -157,6 +157,7 @@ conf->stats.ctrg = rate_ctr_group_alloc(conf, &bsc_cfg_ctrg_desc, conf->nr); if (!conf->stats.ctrg) { + llist_del(&conf->entry); talloc_free(conf); return NULL; }