diff --git a/src/xenia/kernel/xboxkrnl_strings.cc b/src/xenia/kernel/xboxkrnl_strings.cc index 4d92652b1..8c7b20942 100644 --- a/src/xenia/kernel/xboxkrnl_strings.cc +++ b/src/xenia/kernel/xboxkrnl_strings.cc @@ -440,6 +440,8 @@ SHIM_CALL _vswprintf_shim( } *b = '\0'; + xe_free(swapped_format); + // swap the result buffer for (wchar_t* swap = buffer; swap != b; ++swap) {