Skip to content

Commit

Permalink
Fix buffer queue memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak authored May 22, 2022
1 parent c6b70d3 commit 51eeaf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/client-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,8 @@ class ClientRequest extends Writable {
job();
}

this[kJobs].length = 0;

this.emit('socket', this.socket);
};

Expand Down

0 comments on commit 51eeaf5

Please # to comment.