Commit cb84580b authored by Martin Sustrik's avatar Martin Sustrik

harmless uninitialised memory read fixed

parent 9bd309bd
...@@ -60,11 +60,13 @@ namespace zmq ...@@ -60,11 +60,13 @@ namespace zmq
inline ~yqueue_t () inline ~yqueue_t ()
{ {
while (true) { while (true) {
if (begin_chunk == end_chunk) {
delete begin_chunk;
break;
}
chunk_t *o = begin_chunk; chunk_t *o = begin_chunk;
begin_chunk = begin_chunk->next; begin_chunk = begin_chunk->next;
delete o; delete o;
if (o == end_chunk)
break;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment