Commit ab9349d3 authored by Pieter Hintjens's avatar Pieter Hintjens

Revert "Fix potential memory leak"

This reverts commit 50d34e56.
parent e376ad27
......@@ -123,10 +123,8 @@ zmq::socket_base_t *zmq::socket_base_t::create (int type_, class ctx_t *parent_,
}
alloc_assert (s);
if (s->mailbox.get_fd () == retired_fd) {
delete s;
if (s->mailbox.get_fd () == retired_fd)
return NULL;
}
return s;
}
......
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