Skip to content

Commit

Permalink
Fix memory leak issue in runCode function
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelo-schreiber committed May 1, 2024
1 parent 95e262c commit 57c2428
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/run-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export async function runCode(request: Request, response: Response) {
} finally {
try {
// prevent memory leaks
await container.kill();
await container.stop();
await container.remove();
} catch (e) {}
Expand Down

0 comments on commit 57c2428

Please sign in to comment.