TSRM/ZTS fixes
efree resource memory