free error message object

This commit is contained in:
dzaima 2022-06-07 18:47:13 +03:00
parent 14b7942556
commit 6b6f2892b7

View File

@ -1211,7 +1211,9 @@ NOINLINE void vm_printPos(Comp* comp, i32 bcPos, i64 pos) {
if (CATCH) goto native_print; if (CATCH) goto native_print;
B s = emptyCVec(); B s = emptyCVec();
fprintRaw(stderr, vm_fmtPoint(src, s, comp->path, cs, ce)); B msg = vm_fmtPoint(src, s, comp->path, cs, ce);
fprintRaw(stderr, msg);
dec(msg);
fputc('\n', stderr); fputc('\n', stderr);
popCatch(); popCatch();
return; return;