projects
/
platform
/
upstream
/
openconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Close ssl_sock before returning error in connect_https_socket()
[platform/upstream/openconnect.git]
/
cstp.c
diff --git
a/cstp.c
b/cstp.c
index
284dcdf
..
dacb2ae
100644
(file)
--- a/
cstp.c
+++ b/
cstp.c
@@
-302,6
+302,9
@@
static int start_cstp_connection(struct openconnect_info *vpninfo)
if (!new_option->option || !new_option->value) {
vpn_progress(vpninfo, PRG_ERR, _("No memory for options\n"));
+ free(new_option->option);
+ free(new_option->value);
+ free(new_option);
return -ENOMEM;
}