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

Jack Lloyd lloyd at randombit.net
Mon Jul 9 15:28:09 EDT 2012


Fixed, thank you.

On Mon, Jul 09, 2012 at 08:52:52PM +0200, Martin Olsson wrote:
> ---
>  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
> 
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://lists.randombit.net/mailman/listinfo/botan-devel



More information about the botan-devel mailing list