mirror of https://github.com/nodejs/node.git
crypto: do not deallocate embedded buffer
parent
56d9c48573
commit
4536b27ac1
|
@ -226,6 +226,11 @@ void NodeBIO::FreeEmpty() {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while (cur != read_head_) {
|
while (cur != read_head_) {
|
||||||
|
// Skip embedded buffer
|
||||||
|
if (cur == &head_) {
|
||||||
|
cur = head_.next_;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
assert(cur != write_head_);
|
assert(cur != write_head_);
|
||||||
assert(cur->write_pos_ == cur->read_pos_);
|
assert(cur->write_pos_ == cur->read_pos_);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue