Skip to content

Commit

Permalink
src: fix argv memory leaking in FixupArgsForSEA
Browse files Browse the repository at this point in the history
  • Loading branch information
CGQAQ committed Oct 29, 2024
1 parent 45c6a9e commit 21951c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node_sea.cc
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ std::tuple<int, char**> 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();
}
Expand Down

0 comments on commit 21951c6

Please sign in to comment.