From: Tobias Brunner Date: Mon, 15 Jul 2013 13:12:35 +0000 (+0200) Subject: unity: Fix memory leak in provider X-Git-Tag: 5.1.0rc1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7d0b80abb4e0302200d1f4fde1789ddf160ab11;p=thirdparty%2Fstrongswan.git unity: Fix memory leak in provider --- 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);