]> granicus.if.org Git - php/commitdiff
fix memleak on resetting rebind_proc
authorMichael Wallner <mike@php.net>
Mon, 30 Sep 2013 09:23:33 +0000 (11:23 +0200)
committerMichael Wallner <mike@php.net>
Mon, 30 Sep 2013 09:23:33 +0000 (11:23 +0200)
ext/ldap/ldap.c

index 3cfa2092e776e2a92825a7b59f3ef8caa5386e8b..71d57d6d9b9efc4d115b2b85a2861ee2349f5979 100644 (file)
@@ -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);
                }