ipsec: fix memleaks in ikev2 openssl code 65/22365/2
authorChristian E. Hopps <chopps@chopps.org>
Fri, 27 Sep 2019 19:24:37 +0000 (15:24 -0400)
committerChristian E. Hopps <chopps@chopps.org>
Fri, 27 Sep 2019 19:41:19 +0000 (15:41 -0400)
commit9a5aab34f51bc1e5458456888ba142ee1055e1f4
tree2e89e219c8c2bc0bfe2587b35e38a51155d7bd18
parent18512b002da5da312aa2638b67a8ec4bb2c10236
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 <chopps@chopps.org>
Change-Id: Ie8840403bcac500c20085d57240401ad39d119f8
src/plugins/ikev2/ikev2_crypto.c