aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2020-10-10 03:28:17 +0200
committerAlexander Couzens <lynxis@fe80.eu>2020-10-10 03:28:17 +0200
commit3531504d526af1af2338f02a2aabf3503e14b256 (patch)
treef79c7ab787367e7c4cdcadbe408211f9ceabf834 /src
parent6d744989e2df3e044e8ef53fe50591363ca7c942 (diff)
gprs_ns2: gprs_ns2_free(): add missing talloc_free
It clean up all the space except the nsi itself. Change-Id: Ia3fbe5d679d0af75b2b0db020f1eb082d629cf50
Diffstat (limited to 'src')
-rw-r--r--src/gb/gprs_ns2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c
index 86813f35..7a153527 100644
--- a/src/gb/gprs_ns2.c
+++ b/src/gb/gprs_ns2.c
@@ -1001,6 +1001,8 @@ void gprs_ns2_free(struct gprs_ns2_inst *nsi)
llist_for_each_entry_safe(bind, tbind, &nsi->binding, list) {
gprs_ns2_free_bind(bind);
}
+
+ talloc_free(nsi);
}
/*! Configure whether a NS Instance should dynamically create NSEs based on incoming traffic.