changeset 41:a77f4cd1336d

Fix OpenSSL memory leak (spotted by Chris Double)
author Adam Chlipala <adam@chlipala.net>
date Sun, 12 Jun 2011 17:49:43 -0400
parents 5415f1ded564
children 1068de1623a5
files src/c/openid.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/c/openid.c	Sun Jun 12 17:16:30 2011 -0400
+++ b/src/c/openid.c	Sun Jun 12 17:49:43 2011 -0400
@@ -421,7 +421,7 @@
   BIO_push(b64, bmem);
   n = BIO_read(b64, buffer, bufferLength);
 
-  BIO_free_all(bmem);
+  BIO_free_all(b64);
 
   return n;
 }