We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e763220 commit 7f4c95eCopy full SHA for 7f4c95e
src/tls_wrap.cc
@@ -305,6 +305,7 @@ void TLSWrap::EncOut() {
305
for (size_t i = 0; i < count; i++)
306
buf[i] = uv_buf_init(data[i], size[i]);
307
int r = stream_->DoWrite(write_req, buf, count, nullptr);
308
+ write_req->Dispatched();
309
310
// Ignore errors, this should be already handled in js
311
if (!r)
@@ -314,6 +315,8 @@ void TLSWrap::EncOut() {
314
315
316
void TLSWrap::EncOutCb(WriteWrap* req_wrap, int status) {
317
TLSWrap* wrap = req_wrap->wrap()->Cast<TLSWrap>();
318
+ req_wrap->~WriteWrap();
319
+ delete[] reinterpret_cast<char*>(req_wrap);
320
321
// Handle error
322
if (status) {
0 commit comments