From 946492c28eee759fc331c9f73d9c705c65da321e Mon Sep 17 00:00:00 2001 From: Albert S Date: Sat, 15 May 2021 21:26:28 +0200 Subject: [PATCH] qssb_free_policy(): free path policies --- qssb.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qssb.h b/qssb.h index af190f7..8067bc7 100644 --- a/qssb.h +++ b/qssb.h @@ -415,6 +415,13 @@ int qssb_end_policy(struct qssb_policy *ctxt) */ void qssb_free_policy(struct qssb_policy *ctxt) { + struct qssb_path_policy *current = ctxt->path_policies; + while(current) + { + struct qssb_path_policy *tmp = current; + current = current->next; + free(tmp); + } free(ctxt); }