runFile: Free file source before exiting the function (#774)

This prevents a memleak, noticeable when running `wren_test` under
`valgrind`. For example, the following command would leak

`./bin/wren_test_d any_example.wren`
This commit is contained in:
CohenArthur
2020-07-09 20:54:21 +02:00
committed by GitHub
parent 1623654465
commit 8be40ec14e

View File

@ -441,6 +441,7 @@
WrenInterpretResult result = wrenInterpret(vm, module->chars, source);
pathFree(module);
free(source);
return result;
}