diff options
author | Rich Salz <rsalz@openssl.org> | 2015-05-01 16:15:18 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-05-01 16:15:18 +0200 |
commit | efa7dd64443f246004751bdaa5671bf6836e07ff (patch) | |
tree | df55d807a97d046ce17eb12adca78ea36a6038fa /engines/e_chil.c | |
parent | free null cleanup finale (diff) | |
download | openssl-efa7dd64443f246004751bdaa5671bf6836e07ff.tar.xz openssl-efa7dd64443f246004751bdaa5671bf6836e07ff.zip |
free NULL cleanup 11
Don't check for NULL before calling free functions. This gets:
ERR_STATE_free
ENGINE_free
DSO_free
CMAC_CTX_free
COMP_CTX_free
CONF_free
NCONF_free NCONF_free_data _CONF_free_data
A sk_free use within OBJ_sigid_free
TS_TST_INFO_free (rest of TS_ API was okay)
Doc update for UI_free (all uses were fine)
X509V3_conf_free
X509V3_section_free
X509V3_string_free
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'engines/e_chil.c')
-rw-r--r-- | engines/e_chil.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/e_chil.c b/engines/e_chil.c index 35352140af..75c15f69e2 100644 --- a/engines/e_chil.c +++ b/engines/e_chil.c @@ -622,8 +622,7 @@ static int hwcrhk_init(ENGINE *e) # endif return 1; err: - if (hwcrhk_dso) - DSO_free(hwcrhk_dso); + DSO_free(hwcrhk_dso); hwcrhk_dso = NULL; p_hwcrhk_Init = NULL; p_hwcrhk_Finish = NULL; |