I'm new to Zend engine and writing an extension. According to this page if I want to remove all elements from a hashtable but not actually destroy everything, then I can use the zend_hash_clean()
function.
However, when I carefully studied this particular function, I realised that the array of buckets is not released as in zend_hash_destroy()
even though the destructor is invoked for each bucket element and all the other values are reset (nNumUsed, nNumOfElements, nInteralPointer, etc.).
I highly suspect this is the source of my memory leaks.
Please let me know if I'm wrong. Any suggestion or pointer is much appreciated.