projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
free cleanup 12
[openssl.git]
/
crypto
/
ecdsa
/
ecs_lib.c
diff --git
a/crypto/ecdsa/ecs_lib.c
b/crypto/ecdsa/ecs_lib.c
index 55324f7fef6652c82e4a6a67eece6e55365c2b32..3d012120f6bee95dd14283f0d726e429c57aa5cc 100644
(file)
--- a/
crypto/ecdsa/ecs_lib.c
+++ b/
crypto/ecdsa/ecs_lib.c
@@
-312,6
+312,8
@@
void ECDSA_METHOD_set_name(ECDSA_METHOD *ecdsa_method, char *name)
void ECDSA_METHOD_free(ECDSA_METHOD *ecdsa_method)
{
+ if (!ecdsa_method)
+ return;
if (ecdsa_method->flags & ECDSA_METHOD_FLAG_ALLOCATED)
OPENSSL_free(ecdsa_method);
}