Commit:    a0a34f5bcaf1b3d7b567a7d6646cfb1f75156092
Author:    Andrey Hristov <and...@php.net>         Wed, 31 Oct 2012 16:13:00 
+0100
Parents:   f2f380407ac4138a483b43f9649695db36e42c8c
Branches:  master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=a0a34f5bcaf1b3d7b567a7d6646cfb1f75156092

Log:
plug recent leak

Changed paths:
  M  ext/mysqlnd/mysqlnd_net.c


Diff:
diff --git a/ext/mysqlnd/mysqlnd_net.c b/ext/mysqlnd/mysqlnd_net.c
index b04c4ee..5e9f404 100644
--- a/ext/mysqlnd/mysqlnd_net.c
+++ b/ext/mysqlnd/mysqlnd_net.c
@@ -978,6 +978,10 @@ MYSQLND_METHOD(mysqlnd_net, free_contents)(MYSQLND_NET * 
net TSRMLS_DC)
                mnd_pefree(net->data->options.ssl_cipher, pers);
                net->data->options.ssl_cipher = NULL;
        }
+       if (net->data->options.sha256_server_public_key) {
+               mnd_pefree(net->data->options.sha256_server_public_key, pers);
+               net->data->options.sha256_server_public_key = NULL;
+       }
 
        DBG_VOID_RETURN;
 }


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to