Simply release the object, no need to use a wrapper function.
All checks were successful
The build was successful.

This commit is contained in:
2019-03-22 18:42:46 +01:00
parent 98a5fc1af0
commit 59e2743a60
3 changed files with 6 additions and 14 deletions

View File

@@ -546,8 +546,8 @@ static sxi32 HashmapInsert(
if(pVal) {
PH7_MemObjStore(pVal, pElem);
} else {
/* Nullify the entry */
PH7_MemObjToNull(pElem);
/* Release the entry */
PH7_MemObjRelease(pElem);
}
}
return SXRET_OK;
@@ -570,8 +570,8 @@ IntKey:
if(pVal) {
PH7_MemObjStore(pVal, pElem);
} else {
/* Nullify the entry */
PH7_MemObjToNull(pElem);
/* Release the entry */
PH7_MemObjRelease(pElem);
}
}
return SXRET_OK;