From dbaa47a851a53769b7c45000cbc0cf361686b767 Mon Sep 17 00:00:00 2001 From: gibbed Date: Fri, 17 Jan 2014 18:48:47 -0800 Subject: [PATCH] Whoops. Memory leak. --- src/xenia/kernel/xboxkrnl_strings.cc | 2 ++ 1 file changed, 2 insertions(+) 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) {