mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 18:55:10 +01:00
Revert "Fixed potential SEGFAULT."
This reverts commit 79b81f4840
.
Was causing:
Assertion failed: destroyed (socket_base.cpp:154)
/bin/bash: line 5: 31344 Aborted ${dir}$tst
FAIL: test_many_sockets
On TravisCI.
This commit is contained in:
parent
a5e397a55e
commit
b1e74f79c4
@ -121,13 +121,10 @@ zmq::socket_base_t *zmq::socket_base_t::create (int type_, class ctx_t *parent_,
|
||||
errno = EINVAL;
|
||||
return NULL;
|
||||
}
|
||||
alloc_assert (s);
|
||||
|
||||
if (s->mailbox.get_fd () == -1)
|
||||
{
|
||||
delete s;
|
||||
alloc_assert (s);
|
||||
if (s->mailbox.get_fd () == retired_fd)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user