https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0ebad9f3c52ecf51fb0e5fc7cf93e190aab46c1e

commit 0ebad9f3c52ecf51fb0e5fc7cf93e190aab46c1e
Author:     William Kent <[email protected]>
AuthorDate: Sun Oct 10 16:59:48 2021 -0400
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Thu May 5 17:21:54 2022 +0200

    [TXT2NLS] Use delete[] to deallocate new[] output (#4022)
    
    Per AppleClang 13.0 warning.
---
 sdk/tools/txt2nls/main.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sdk/tools/txt2nls/main.cpp b/sdk/tools/txt2nls/main.cpp
index cb8ebb7572f..d966029ede0 100644
--- a/sdk/tools/txt2nls/main.cpp
+++ b/sdk/tools/txt2nls/main.cpp
@@ -541,7 +541,7 @@ int main(int argc, char* argv[])
     output.write(reinterpret_cast<char*>(wc_table), 65536 * 
FileHeader.MaximumCharacterSize);
 
     output.close();
-    delete wc_table;
+    delete[] wc_table;
 
     return 0;
 }

Reply via email to