freed reader twice instead of writer and reader

This commit is contained in:
Harald Radi 2003-01-11 11:34:43 +00:00
parent 213b5abd06
commit c8d19858ac

View File

@ -69,7 +69,7 @@ ZEND_API int zend_ts_hash_init_ex(TsHashTable *ht, uint nSize, hash_func_t pHash
ZEND_API void zend_ts_hash_destroy(TsHashTable *ht)
{
tsrm_mutex_free(ht->mx_reader);
tsrm_mutex_free(ht->mx_reader);
tsrm_mutex_free(ht->mx_writer);
zend_hash_destroy(TS_HASH(ht));
}