Skip to content

Commit

Permalink
Free allocated path buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimyr committed Jun 16, 2020
1 parent 9a43ee6 commit 381448e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/module/os.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,6 @@ void processCwd(WrenVM* vm)
}

wrenSetSlotString(vm, 0, buffer);

if (buffer != _buffer) free(buffer);
}

0 comments on commit 381448e

Please sign in to comment.