summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-03-23 11:42:30 +0100
committerJo-Philipp Wich <jo@mein.io>2021-03-23 11:42:52 +0100
commit0d0357d2194756e09af5c17055a6e7f676d6640e (patch)
treea32225f7777dbd9c72e5d4b4ed7a54fc852c9aef
parent7a41fb3cbb13b2d885f178c95e0d1606e6a1c7d6 (diff)
vm: fix leaking source context strings in trace mode
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r--vm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 7fb7078..929859d 100644
--- a/vm.c
+++ b/vm.c
@@ -548,6 +548,7 @@ uc_dump_insn(uc_vm *vm, uint8_t *pos, enum insn_type insn)
srcpos, true);
fprintf(stderr, "%s", msg);
+ free(msg);
last_source = frame->closure->function->source;
last_srcpos = srcpos;