Skip to content

Commit

Permalink
Fixed compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
shai-almog authored Aug 11, 2023
1 parent 74f5f08 commit ac8096c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vm/ByteCodeTranslator/src/cn1_globals.m
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,9 @@ void placeObjectInHeapCollection(JAVA_OBJECT obj) {
// the thread just died, mark its remaining resources
void collectThreadResources(struct ThreadLocalData *current)
{
if(threadStateData->utf8Buffer != 0) {
free(threadStateData->utf8Buffer);
threadStateData->utf8Buffer = 0;
if(current->utf8Buffer != 0) {
free(current->utf8Buffer);
current->utf8Buffer = 0;
}
for(int heapTrav = 0 ; heapTrav < current->heapAllocationSize ; heapTrav++) {
JAVA_OBJECT obj = (JAVA_OBJECT)current->pendingHeapAllocations[heapTrav];
Expand Down

0 comments on commit ac8096c

Please sign in to comment.