diff options
author | Michal Rokos <m.rokos@sh.cvut.cz> | 2001-12-21 20:10:12 +0000 |
---|---|---|
committer | Michal Rokos <m.rokos@sh.cvut.cz> | 2001-12-21 20:10:12 +0000 |
commit | 91d3b685dcd805ced1453c551ad315eb3173eab1 (patch) | |
tree | c0ed09824800e654855d9224b9b9d398523b3f44 /ossl_hmac.c | |
parent | b248d91eda8ce439e8d3565438c5ca9bc7c07e9d (diff) | |
download | ruby-openssl-history-91d3b685dcd805ced1453c551ad315eb3173eab1.tar.gz |
* Memory checking
Diffstat (limited to 'ossl_hmac.c')
-rw-r--r-- | ossl_hmac.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ossl_hmac.c b/ossl_hmac.c index b56beb8..c69c7e7 100644 --- a/ossl_hmac.c +++ b/ossl_hmac.c @@ -34,8 +34,8 @@ static void ossl_hmac_free(ossl_hmac *hmacp) { if (hmacp) { - if (hmacp->hmac) - OPENSSL_free(hmacp->hmac); + if (hmacp->hmac) OPENSSL_free(hmacp->hmac); + hmacp->hmac = NULL; free(hmacp); } } @@ -179,13 +179,13 @@ Init_hmac(VALUE module) rb_define_alias(cHMAC, "to_str", "hexhmac"); } -#else +#else /* NO_HMAC is defined */ void Init_hmac(VALUE module) { - rb_warning("HMAC will NOT be avaible: OpenSSL is compiled without HMAC"); + rb_warning("HMAC will NOT be avaible: OpenSSL is compiled without HMAC."); } -#endif +#endif /* NO_HMAC */ |