mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-31 14:39:55 +01:00
harmless uninitialised memory read fixed
This commit is contained in:
parent
9bd309bda6
commit
cb84580bbc
@ -60,11 +60,13 @@ namespace zmq
|
||||
inline ~yqueue_t ()
|
||||
{
|
||||
while (true) {
|
||||
if (begin_chunk == end_chunk) {
|
||||
delete begin_chunk;
|
||||
break;
|
||||
}
|
||||
chunk_t *o = begin_chunk;
|
||||
begin_chunk = begin_chunk->next;
|
||||
delete o;
|
||||
if (o == end_chunk)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user