aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-29 09:49:30 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-08-29 11:42:26 +0200
commitdc16bdd3695fb62362106e8f15c65971cd794f4a (patch)
tree0d83950e14385e49e404ba3ba28935d2d3088241
parentcd48525ecb49340ecb839514b940667b2a699e33 (diff)
nat: Remove the entry from the list before we destroy it
-rw-r--r--openbsc/src/osmo-bsc_nat/bsc_nat_utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat_utils.c b/openbsc/src/osmo-bsc_nat/bsc_nat_utils.c
index 14ea30848..93831c417 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 @@ struct bsc_config *bsc_config_alloc(struct bsc_nat *nat, const char *token)
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;
}