nat: Remove the entry from the list before we destroy it
This commit is contained in:
parent
cd48525ecb
commit
dc16bdd369
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue