diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-09-16 14:02:43 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-09-16 14:02:43 +0200 |
commit | 4631fde7e385ea31e85f41290614afb9bda391c9 (patch) | |
tree | 4e936e8835d461eebc23ed9673ef874837492173 /src/dispatcher.cpp | |
parent | 9c522dccaf0b2c8074bd96fbfb4c968f45748ba4 (diff) |
ZMQII-8: Failure during orphan pipe deallocation
Diffstat (limited to 'src/dispatcher.cpp')
-rw-r--r-- | src/dispatcher.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dispatcher.cpp b/src/dispatcher.cpp index 530238d..6ac9fa2 100644 --- a/src/dispatcher.cpp +++ b/src/dispatcher.cpp @@ -100,8 +100,8 @@ zmq::dispatcher_t::~dispatcher_t () delete io_threads [i]; // Deallocate all the orphaned pipes. - for (pipes_t::iterator it = pipes.begin (); it != pipes.end (); it++) - delete *it; + while (!pipes.empty ()) + delete *pipes.begin (); delete [] command_pipes; |