ipsec: fix memleaks in ikev2 openssl code 65/22465/2
authorChristian E. Hopps <[email protected]>
Fri, 27 Sep 2019 19:24:37 +0000 (15:24 -0400)
committerAndrew Yourtchenko <[email protected]>
Thu, 3 Oct 2019 10:06:58 +0000 (10:06 +0000)
commit41e96bbc6448afcfab5842a281315bae74a463ad
treedd6549a7eccd26df439cd1044c3f7d68058fe0fb
parentcb671c3e139318a8935d1e456aee14624dc1acad
ipsec: fix memleaks in ikev2 openssl code

- Need to always free created contexts
- Always pair init with cleanup for older openssl API.

Type: fix
Signed-off-by: Christian E. Hopps <[email protected]>
Change-Id: Ie8840403bcac500c20085d57240401ad39d119f8
(cherry picked from commit 9a5aab34f51bc1e5458456888ba142ee1055e1f4)
src/plugins/ikev2/ikev2_crypto.c