Skip to content

Commit 218f9b5

Browse files
rquMartin Kruliš
authored andcommitted
Free arguments after executing isolate (2).
(Correcting a mistake in previous commit.)
1 parent 4e2852b commit 218f9b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/sandbox/isolate_sandbox.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ void isolate_sandbox::isolate_run(const std::string &binary, const std::vector<s
250250
execvp(isolate_binary_.c_str(), args);
251251

252252
// Never reached
253-
for(char **arg = args; *arg; arg++)
254-
free(*arg);
253+
for(char **arg = args; *arg; arg++) { free(*arg); }
254+
delete[] args;
255255

256256
log_and_throw(logger_, "Exec returned to child: ", strerror(errno));
257257
} break;

0 commit comments

Comments
 (0)