diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-03-23 11:42:30 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-03-23 11:42:52 +0100 |
commit | 0d0357d2194756e09af5c17055a6e7f676d6640e (patch) | |
tree | a32225f7777dbd9c72e5d4b4ed7a54fc852c9aef | |
parent | 7a41fb3cbb13b2d885f178c95e0d1606e6a1c7d6 (diff) |
vm: fix leaking source context strings in trace mode
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rw-r--r-- | vm.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |