Class Entry memleak..

From: Date: Tue, 01 Jul 2003 03:44:52 +0000
Subject: Class Entry memleak..
Groups: php.internals 
Request: Send a blank email to internals+get-3159@lists.php.net to get a copy of this message
i have a ZE2 OO extension which declares class constants as follows : <code> void register_class_long_constant_ex(zend_class_entry * ce, char *key, uint key_len, long lval) { zval *tmp; MAKE_STD_ZVAL(tmp); ZVAL_LONG(tmp, lval); zend_hash_update(&(ce)->constants_table, key, key_len, (void *) &tmp, sizeof(zval *), NULL); } </code> for some reason the memory allocated here by MAKE_STD_ZVL is not reclaimed at process termination. i get the same problem in cgi as well as cli mode. any ideas of why cleanup isnt happening properly ? l0t3k

« previous php.internals (#3159) next »