crypto: do not deallocate embedded buffer

pull/5010/head
Fedor Indutny 2013-06-13 12:59:29 +02:00
parent 56d9c48573
commit 4536b27ac1
1 changed files with 5 additions and 0 deletions

View File

@ -226,6 +226,11 @@ void NodeBIO::FreeEmpty() {
return;
while (cur != read_head_) {
// Skip embedded buffer
if (cur == &head_) {
cur = head_.next_;
continue;
}
assert(cur != write_head_);
assert(cur->write_pos_ == cur->read_pos_);