diff options
Diffstat (limited to 'openbsc/src/nat/bsc_nat.c')
-rw-r--r-- | openbsc/src/nat/bsc_nat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c index fcf732b42..1465be01c 100644 --- a/openbsc/src/nat/bsc_nat.c +++ b/openbsc/src/nat/bsc_nat.c @@ -354,6 +354,9 @@ static void remove_bsc_connection(struct bsc_connection *connection) sccp_connection_destroy(sccp_patch); } + /* close endpoints allocated by this BSC */ + bsc_mgcp_clear_endpoints_for(connection); + talloc_free(connection); } |