mirror of
https://github.com/openssl/openssl.git
synced 2025-01-24 13:55:42 +08:00
Coverity 1515538: resource leak
Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19275)
This commit is contained in:
parent
9690b9737d
commit
8bc703c288
@ -687,8 +687,10 @@ int pkcs12_main(int argc, char **argv)
|
||||
if ((cb_sk = NCONF_get_section(conf, cb_attr)) != NULL) {
|
||||
for (i = 0; i < sk_CONF_VALUE_num(cb_sk); i++) {
|
||||
val = sk_CONF_VALUE_value(cb_sk, i);
|
||||
if (strcmp(val->name, "jdkTrustedKeyUsage") == 0)
|
||||
if (strcmp(val->name, "jdkTrustedKeyUsage") == 0) {
|
||||
obj = OBJ_txt2obj(val->value, 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ERR_clear_error();
|
||||
|
Loading…
Reference in New Issue
Block a user