Browse Source

fix memleak on resetting rebind_proc

PHP-5.4.21
Michael Wallner 13 years ago
parent
commit
e9e63f9223
  1. 1
      ext/ldap/ldap.c

1
ext/ldap/ldap.c

@ -2107,6 +2107,7 @@ PHP_FUNCTION(ldap_set_rebind_proc)
/* unregister rebind procedure */ /* unregister rebind procedure */
if (ld->rebindproc != NULL) { if (ld->rebindproc != NULL) {
zval_dtor(ld->rebindproc); zval_dtor(ld->rebindproc);
FREE_ZVAL(ld->rebindproc);
ld->rebindproc = NULL; ld->rebindproc = NULL;
ldap_set_rebind_proc(ld->link, NULL, NULL); ldap_set_rebind_proc(ld->link, NULL, NULL);
} }

Loading…
Cancel
Save