projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
free NULL cleanup 9
[openssl.git]
/
crypto
/
pkcs12
/
p12_init.c
diff --git
a/crypto/pkcs12/p12_init.c
b/crypto/pkcs12/p12_init.c
index 34710e9e691bc6969b54cff67261cff644cb930f..22fa10e865d6917c831ff372799765c70ac7551d 100644
(file)
--- a/
crypto/pkcs12/p12_init.c
+++ b/
crypto/pkcs12/p12_init.c
@@
-83,10
+83,9
@@
PKCS12 *PKCS12_init(int mode)
PKCS12err(PKCS12_F_PKCS12_INIT, PKCS12_R_UNSUPPORTED_PKCS12_MODE);
goto err;
}
-
return pkcs12;
+
err:
- if (pkcs12 != NULL)
- PKCS12_free(pkcs12);
+ PKCS12_free(pkcs12);
return NULL;
}