aboutsummaryrefslogtreecommitdiffstats
path: root/engines/e_ubsec.c
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2015-05-01 10:15:18 -0400
committerRich Salz <rsalz@openssl.org>2015-05-01 10:15:18 -0400
commitefa7dd64443f246004751bdaa5671bf6836e07ff (patch)
treedf55d807a97d046ce17eb12adca78ea36a6038fa /engines/e_ubsec.c
parentb548a1f11c06ccdfa4f52a539912d22d77ee309e (diff)
downloadopenssl-efa7dd64443f246004751bdaa5671bf6836e07ff.tar.gz
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_ubsec.c')
-rw-r--r--engines/e_ubsec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/e_ubsec.c b/engines/e_ubsec.c
index c7eb892cf4..a44b0b2b4a 100644
--- a/engines/e_ubsec.c
+++ b/engines/e_ubsec.c
@@ -481,8 +481,7 @@ static int ubsec_init(ENGINE *e)
}
err:
- if (ubsec_dso)
- DSO_free(ubsec_dso);
+ DSO_free(ubsec_dso);
ubsec_dso = NULL;
p_UBSEC_ubsec_bytes_to_bits = NULL;
p_UBSEC_ubsec_bits_to_bytes = NULL;