unity: Fix memory leak in provider
authorTobias Brunner <tobias@strongswan.org>
Mon, 15 Jul 2013 13:12:35 +0000 (15:12 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 17 Jul 2013 16:23:57 +0000 (18:23 +0200)
src/libcharon/plugins/unity/unity_provider.c

index 655b872..ac6f93d 100644 (file)
@@ -60,6 +60,7 @@ METHOD(enumerator_t, attribute_enumerate, bool,
                }
                if (ts->to_subnet(ts, &net, &mask))
                {
+                       ts->destroy(ts);
                        break;
                }
                ts->destroy(ts);