summaryrefslogtreecommitdiff
path: root/ext/ldap/ldap.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ldap/ldap.c')
-rw-r--r--ext/ldap/ldap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c
index 57d12ece80..f279b7e1fd 100644
--- a/ext/ldap/ldap.c
+++ b/ext/ldap/ldap.c
@@ -1824,6 +1824,8 @@ PHP_FUNCTION(ldap_modify_batch)
default:
zend_throw_error(zend_ce_error, "Unknown and uncaught modification type.");
RETVAL_FALSE;
+ efree(ldap_mods[i]);
+ num_mods = i;
goto cleanup;
}