]> granicus.if.org Git - php/commitdiff
NULL the value after free
authorIlia Alshanetsky <iliaa@php.net>
Tue, 18 Aug 2009 12:44:32 +0000 (12:44 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 18 Aug 2009 12:44:32 +0000 (12:44 +0000)
ext/ldap/ldap.c

index 7cb03843c299a4a6b525138220aa990794fbd9c0..2adb70f19d5aae03e3b3c2029385fc8969225c4a 100644 (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);