aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-07-15 15:12:35 +0200
committerTobias Brunner <tobias@strongswan.org>2013-07-17 18:23:57 +0200
commitc7d0b80abb4e0302200d1f4fde1789ddf160ab11 (patch)
tree88f26c62b8f5a60cf2e3fc103214dcb252e40c99
parentb2dfa0624d0ea4c1cc8308c06cb97f3d6ff0a9ac (diff)
downloadstrongswan-c7d0b80abb4e0302200d1f4fde1789ddf160ab11.tar.bz2
strongswan-c7d0b80abb4e0302200d1f4fde1789ddf160ab11.tar.xz
unity: Fix memory leak in provider
-rw-r--r--src/libcharon/plugins/unity/unity_provider.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcharon/plugins/unity/unity_provider.c b/src/libcharon/plugins/unity/unity_provider.c
index 655b8724a..ac6f93d69 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);