From c7d0b80abb4e0302200d1f4fde1789ddf160ab11 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Mon, 15 Jul 2013 15:12:35 +0200 Subject: [PATCH] unity: Fix memory leak in provider --- src/libcharon/plugins/unity/unity_provider.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcharon/plugins/unity/unity_provider.c b/src/libcharon/plugins/unity/unity_provider.c index 655b8724af..ac6f93d691 100644 --- a/src/libcharon/plugins/unity/unity_provider.c +++ b/src/libcharon/plugins/unity/unity_provider.c @@ -60,6 +60,7 @@ METHOD(enumerator_t, attribute_enumerate, bool, } if (ts->to_subnet(ts, &net, &mask)) { + ts->destroy(ts); break; } ts->destroy(ts); -- 2.47.2