commit | 8fdc3734c063146b038608c2412a0f2c9b21b6d6 | [log] [tgz] |
---|---|---|
author | Rich Salz <rsalz@openssl.org> | Wed Mar 25 18:35:24 2015 -0400 |
committer | Rich Salz <rsalz@openssl.org> | Wed Mar 25 18:35:24 2015 -0400 |
tree | ed30d40a40a6bf7002121a29e3db4b4790a54d87 | |
parent | 17dd65e6e1f888b4561d559b4d44fbbe0a0aa3e7 [diff] [blame] |
free NULL cleanup. This gets EC_GROUP_clear_free EC_GROUP_free, EC_KEY_free, EC_POINT_clear_free, EC_POINT_free Reviewed-by: Kurt Roeckx <kurt@openssl.org>
diff --git a/crypto/ec/ec_print.c b/crypto/ec/ec_print.c index 96b294d..7c34694 100644 --- a/crypto/ec/ec_print.c +++ b/crypto/ec/ec_print.c
@@ -110,7 +110,7 @@ ret = point; if (!EC_POINT_oct2point(group, ret, buf, buf_len, ctx)) { - if (point == NULL) + if (ret != point) EC_POINT_clear_free(ret); OPENSSL_free(buf); return NULL;