mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-31 22:45:38 +01:00
Merge pull request #881 from hintjens/master
Revert "Fix potential memory leak"
This commit is contained in:
commit
6150812ff1
@ -123,10 +123,8 @@ zmq::socket_base_t *zmq::socket_base_t::create (int type_, class ctx_t *parent_,
|
|||||||
}
|
}
|
||||||
|
|
||||||
alloc_assert (s);
|
alloc_assert (s);
|
||||||
if (s->mailbox.get_fd () == retired_fd) {
|
if (s->mailbox.get_fd () == retired_fd)
|
||||||
delete s;
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user