nat: Remove the entry from the list before we destroy it

This commit is contained in:
Holger Hans Peter Freyther 2014-08-29 09:49:30 +02:00
parent cd48525ecb
commit dc16bdd369
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}