summaryrefslogtreecommitdiff
path: root/ext/ldap
diff options
context:
space:
mode:
authorMichael Wallner <mike@php.net>2013-09-30 11:23:33 +0200
committerMichael Wallner <mike@php.net>2013-09-30 11:23:33 +0200
commite9e63f922303d852b6899cadd68d7ec73e8f6134 (patch)
tree386e6e4e86027cd6069ad4409fbe22ef7178648b /ext/ldap
parentf0c926564c5f7de9462d9ca7bd75014b14a63f56 (diff)
downloadphp-git-e9e63f922303d852b6899cadd68d7ec73e8f6134.tar.gz
fix memleak on resetting rebind_proc
Diffstat (limited to 'ext/ldap')
-rw-r--r--ext/ldap/ldap.c1
1 files changed, 1 insertions, 0 deletions
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);
}