@sonney2k okay. yes it works. I thought its managed internally when we use SG_MALLOC. sorry for the mess :(