]> WPIA git - cassiopeia.git/commitdiff
fix: resource (fd) leak in CRL class
authorFelix Dörre <felix@dogcraft.de>
Sat, 23 Jan 2016 17:27:47 +0000 (18:27 +0100)
committerFelix Dörre <felix@dogcraft.de>
Sat, 23 Jan 2016 17:27:47 +0000 (18:27 +0100)
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 ) {