mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-09-27 17:38:08 +03:00
Fix memory leak in S_MOD
This commit is contained in:
@@ -129,6 +129,7 @@ static void append_fmt(struct string **s, struct fmt_spec *spec, union vm_value
|
||||
break;
|
||||
case FMT_STRING:
|
||||
string_append(s, heap[arg.i].s);
|
||||
heap_unref(arg.i);
|
||||
break;
|
||||
case FMT_CHAR:
|
||||
string_push_back(s, arg.i);
|
||||
|
||||
Reference in New Issue
Block a user