diff --git a/crossplatform/src/objmem.c b/crossplatform/src/objmem.c index 375eafbcb..37a22ab9f 100644 --- a/crossplatform/src/objmem.c +++ b/crossplatform/src/objmem.c @@ -660,8 +660,8 @@ void removeFlagPosition(FLAG_POSITION *psDel) if (psCurr != NULL) { psPrev->psNext = psCurr->psNext; + HEAP_FREE(psFlagPosHeap, psCurr); } - HEAP_FREE(psFlagPosHeap, psCurr); } }