Skip to content

Instantly share code, notes, and snippets.

@kaworu
Created June 6, 2014 12:11
Show Gist options
  • Save kaworu/4811dd633b2ecd4815ff to your computer and use it in GitHub Desktop.
Save kaworu/4811dd633b2ecd4815ff to your computer and use it in GitHub Desktop.
@@ -920,12 +930,12 @@ end:
sk_X509_pop_free(verify_other, X509_free);
sk_CONF_VALUE_pop_free(headers, X509V3_conf_free);
- if (use_ssl != -1)
- {
- OPENSSL_free(host);
- OPENSSL_free(port);
- OPENSSL_free(path);
- }
+ if (thost)
+ OPENSSL_free(thost);
+ if (tport)
+ OPENSSL_free(tport);
+ if (tpath)
+ OPENSSL_free(tpath);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment