Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
ikev2: fix memory leaks
[vpp.git]
/
src
/
plugins
/
ikev2
/
ikev2_crypto.c
diff --git
a/src/plugins/ikev2/ikev2_crypto.c
b/src/plugins/ikev2/ikev2_crypto.c
index
b1fdf89
..
013857d
100644
(file)
--- a/
src/plugins/ikev2/ikev2_crypto.c
+++ b/
src/plugins/ikev2/ikev2_crypto.c
@@
-828,6
+828,7
@@
ikev2_load_cert_file (u8 * file)
}
pkey = X509_get_pubkey (x509);
+ X509_free (x509);
if (pkey == NULL)
ikev2_log_error ("get pubkey %s failed", file);