From 3531504d526af1af2338f02a2aabf3503e14b256 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sat, 10 Oct 2020 03:28:17 +0200 Subject: gprs_ns2: gprs_ns2_free(): add missing talloc_free It clean up all the space except the nsi itself. Change-Id: Ia3fbe5d679d0af75b2b0db020f1eb082d629cf50 --- src/gb/gprs_ns2.c | 2 ++ 1 file changed, 2 insertions(+) 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. -- cgit v1.2.3