Skip to content

Commit

Permalink
Allow calling OPENSSL_INIT_free() with NULL argument
Browse files Browse the repository at this point in the history
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from openssl#24681)

(cherry picked from commit d38f62e)
  • Loading branch information
t8m authored and bernd-edlinger committed Jun 25, 2024
1 parent adccf9b commit 41f1d00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crypto/conf/conf_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,9 @@ int OPENSSL_INIT_set_config_appname(OPENSSL_INIT_SETTINGS *settings,

void OPENSSL_INIT_free(OPENSSL_INIT_SETTINGS *settings)
{
if (settings == NULL)
return;

free(settings->filename);
free(settings->appname);
free(settings);
Expand Down

0 comments on commit 41f1d00

Please sign in to comment.