]> WPIA git - cassiopeia.git/blobdiff - src/crypto/CRL.cpp
fix: resource (fd) leak in CRL class
[cassiopeia.git] / src / crypto / CRL.cpp
index 08b49cdc3b0607fd910983a4c7e2ef2d42f96e6e..902cb6dfb409b1b3e72d618aa29428dbfc80cc5f 100644 (file)
@@ -4,7 +4,7 @@
 #include <log/logger.hpp>
 
 CRL::CRL( std::string path ) {
-    std::shared_ptr<BIO> bio( BIO_new_file( path.c_str(), "r" ), free );
+    std::shared_ptr<BIO> bio( BIO_new_file( path.c_str(), "r" ), BIO_free );
     crl = std::shared_ptr<X509_CRL>( PEM_read_bio_X509_CRL( bio.get(), 0, NULL, 0 ), X509_CRL_free );
 
     if( !crl ) {