[botan-devel] [PATCH] Plug memory leak in doc/examples/read_ssh.cpp

Martin Olsson martin at minimum.se
Mon Jul 9 14:52:52 EDT 2012


---
 doc/examples/read_ssh.cpp |    1 +
 1 file changed, 1 insertion(+)

diff --git a/doc/examples/read_ssh.cpp b/doc/examples/read_ssh.cpp
index 0392786..ca313ce 100644
--- a/doc/examples/read_ssh.cpp
+++ b/doc/examples/read_ssh.cpp
@@ -125,5 +125,6 @@ int main()
 
    std::cout << X509::PEM_encode(*key);
 
+   delete key;
    return 0;
    }
-- 
1.7.9.5




More information about the botan-devel mailing list