NULL the value after free

This commit is contained in:
Ilia Alshanetsky 2009-08-18 12:44:32 +00:00
parent 9efc8616d1
commit 73adf7a25a

View File

@ -118,6 +118,7 @@ static void _free_ldap_result_entry(zend_rsrc_list_entry *rsrc TSRMLS_DC) /* {{{
if (entry->ber != NULL) {
ber_free(entry->ber, 0);
entry->ber = NULL;
}
zend_list_delete(entry->id);
efree(entry);