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 <[email protected]>
Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
(Merged from openssl#24681)

(cherry picked from commit d38f62e)
  • Loading branch information
t8m committed Jun 24, 2024
1 parent 1c94b69 commit cbe516a
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 @@ -464,6 +464,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 cbe516a

Please sign in to comment.