From: Michael Wallner Date: Mon, 30 Sep 2013 09:23:33 +0000 (+0200) Subject: fix memleak on resetting rebind_proc X-Git-Tag: php-5.4.21RC1~2^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9e63f922303d852b6899cadd68d7ec73e8f6134;p=php fix memleak on resetting rebind_proc --- diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index 3cfa2092e7..71d57d6d9b 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); }