From aea6138526da7c6c74fc2abec121eabb87f504d2 Mon Sep 17 00:00:00 2001 From: Silas Sewell Date: Tue, 1 Jun 2010 14:18:21 -0600 Subject: Fix depends_on and memory leak Signed-off-by: Adam Vandenberg --- Library/Formula/gloox.rb | 64 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/Library/Formula/gloox.rb b/Library/Formula/gloox.rb index ebcab075e..56c9570e8 100644 --- a/Library/Formula/gloox.rb +++ b/Library/Formula/gloox.rb @@ -5,6 +5,15 @@ class Gloox 0 ) + && certListSize > 0 ) + certListSize--; +@@ -189,7 +193,7 @@ namespace gloox + if( !gnutls_x509_crt_check_hostname( cert[0], m_server.c_str() ) ) + m_certInfo.status |= CertWrongPeer; + +- for( unsigned int i = 0; i < certListSize; ++i ) ++ for( unsigned int i = 0; i < certListSizeFull; ++i ) + gnutls_x509_crt_deinit( cert[i] ); + + delete[] cert; -- cgit v1.2.3