Release object to free some memory.
All checks were successful
The build was successful.

This commit is contained in:
Rafal Kupiec 2018-11-26 20:39:08 +01:00
parent d65a529d21
commit 5dde778382
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -420,7 +420,7 @@ PH7_PRIVATE sxi32 PH7_MemObjToChar(ph7_value *pObj) {
*/
PH7_PRIVATE sxi32 PH7_MemObjToVoid(ph7_value *pObj) {
if((pObj->iFlags & MEMOBJ_VOID) == 0) {
// PH7_MemObjRelease(pObj);
PH7_MemObjRelease(pObj);
MemObjSetType(pObj, MEMOBJ_VOID);
}
return SXRET_OK;