From: Ilia Alshanetsky Date: Tue, 18 Aug 2009 12:44:32 +0000 (+0000) Subject: NULL the value after free X-Git-Tag: php-5.4.0alpha1~191^2~2784 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73adf7a25adb7e9a038588ac8f45c7b64e366a10;p=php NULL the value after free --- diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index 7cb03843c2..2adb70f19d 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -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);