mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 13:03:33 +00:00
nat: Fix some corruption in the test case
This commit is contained in:
@@ -261,6 +261,7 @@ struct bsc_nat {
|
||||
/* create and init the structures */
|
||||
struct bsc_config *bsc_config_alloc(struct bsc_nat *nat, const char *token);
|
||||
struct bsc_config *bsc_config_num(struct bsc_nat *nat, int num);
|
||||
void bsc_config_free(struct bsc_config *);
|
||||
void bsc_config_add_lac(struct bsc_config *cfg, int lac);
|
||||
void bsc_config_del_lac(struct bsc_config *cfg, int lac);
|
||||
int bsc_config_handles_lac(struct bsc_config *cfg, int lac);
|
||||
|
||||
@@ -142,6 +142,11 @@ struct bsc_config *bsc_config_alloc(struct bsc_nat *nat, const char *token)
|
||||
return conf;
|
||||
}
|
||||
|
||||
void bsc_config_free(struct bsc_config *cfg)
|
||||
{
|
||||
rate_ctr_group_free(cfg->stats.ctrg);
|
||||
}
|
||||
|
||||
void bsc_config_add_lac(struct bsc_config *cfg, int _lac)
|
||||
{
|
||||
struct bsc_lac_entry *lac;
|
||||
|
||||
@@ -377,6 +377,7 @@ static void test_contrack()
|
||||
talloc_free(parsed);
|
||||
|
||||
|
||||
bsc_config_free(con->cfg);
|
||||
talloc_free(nat);
|
||||
msgb_free(msg);
|
||||
}
|
||||
@@ -548,6 +549,7 @@ static void test_mgcp_ass_tracking(void)
|
||||
abort();
|
||||
}
|
||||
|
||||
bsc_config_free(bsc->cfg);
|
||||
talloc_free(nat);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user