diff options
Diffstat (limited to 'lib/sslgen.c')
-rw-r--r-- | lib/sslgen.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/lib/sslgen.c b/lib/sslgen.c index 7410a00de..90af86053 100644 --- a/lib/sslgen.c +++ b/lib/sslgen.c @@ -135,20 +135,11 @@ Curl_clone_ssl_config(struct ssl_config_data *source, void Curl_free_ssl_config(struct ssl_config_data* sslc) { - if(sslc->CAfile) - free(sslc->CAfile); - - if(sslc->CApath) - free(sslc->CApath); - - if(sslc->cipher_list) - free(sslc->cipher_list); - - if(sslc->egdsocket) - free(sslc->egdsocket); - - if(sslc->random_file) - free(sslc->random_file); + Curl_safefree(sslc->CAfile); + Curl_safefree(sslc->CApath); + Curl_safefree(sslc->cipher_list); + Curl_safefree(sslc->egdsocket); + Curl_safefree(sslc->random_file); } /** |