Skip to content

Commit

Permalink
Allow calling OPENSSL_INIT_free() with NULL argument
Browse files Browse the repository at this point in the history
  • Loading branch information
t8m committed Jun 19, 2024
1 parent 58301e2 commit b87abbb
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 @@ -476,6 +476,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 b87abbb

Please sign in to comment.