com php-src: fix memleak on resetting rebind_proc: ext/ld ap/ldap.c
| From: | Michael Wallner | Date: | Mon, 30 Sep 2013 09:23:33 +0000 |
| Subject: | com php-src: fix memleak on resetting rebind_proc: ext/ld ap/ldap.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73315@lists.php.net to get a copy of this message | ||
Commit: e9e63f922303d852b6899cadd68d7ec73e8f6134
Author: Michael Wallner <mike@php.net> Mon, 30 Sep 2013 11:23:33 +0200
Parents: f0c926564c5f7de9462d9ca7bd75014b14a63f56
Branches: PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e9e63f922303d852b6899cadd68d7ec73e8f6134
Log:
fix memleak on resetting rebind_proc
Changed paths:
M ext/ldap/ldap.c
Diff:
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c
index 3cfa209..71d57d6 100644
--- a/ext/ldap/ldap.c
+++ b/ext/ldap/ldap.c
@@ -2107,6 +2107,7 @@ PHP_FUNCTION(ldap_set_rebind_proc)
/* unregister rebind procedure */
if (ld->rebindproc != NULL) {
zval_dtor(ld->rebindproc);
+ FREE_ZVAL(ld->rebindproc);
ld->rebindproc = NULL;
ldap_set_rebind_proc(ld->link, NULL, NULL);
}