From dc16bdd3695fb62362106e8f15c65971cd794f4a Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 29 Aug 2014 09:49:30 +0200 Subject: nat: Remove the entry from the list before we destroy it --- openbsc/src/osmo-bsc_nat/bsc_nat_utils.c | 1 + 1 file changed, 1 insertion(+) (limited to 'openbsc/src/osmo-bsc_nat') 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; } -- cgit v1.2.3