From 21951c6bea628e28e7022fd1d31ec37678778188 Mon Sep 17 00:00:00 2001 From: CGQAQ Date: Tue, 29 Oct 2024 11:21:31 +0800 Subject: [PATCH] src: fix argv memory leaking in FixupArgsForSEA --- src/node_sea.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node_sea.cc b/src/node_sea.cc index fb9f933a19fa70..459083c5ffbf2f 100644 --- a/src/node_sea.cc +++ b/src/node_sea.cc @@ -271,6 +271,7 @@ std::tuple FixupArgsForSEA(int argc, char** argv) { new_argv.emplace_back(argv[0]); new_argv.insert(new_argv.end(), argv, argv + argc); new_argv.emplace_back(nullptr); + delete[] argv; argc = new_argv.size() - 1; argv = new_argv.data(); }