Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
dc8f4b1b
Commit
dc8f4b1b
authored
Feb 12, 2010
by
Martin Hurton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak in bind()
parent
cd7300fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
socket_base.cpp
src/socket_base.cpp
+3
-1
zmq_listener.hpp
src/zmq_listener.hpp
+1
-2
No files found.
src/socket_base.cpp
View file @
dc8f4b1b
...
...
@@ -100,8 +100,10 @@ int zmq::socket_base_t::bind (const char *addr_)
choose_io_thread
(
options
.
affinity
),
this
,
options
);
zmq_assert
(
listener
);
int
rc
=
listener
->
set_address
(
addr_type
.
c_str
(),
addr_args
.
c_str
());
if
(
rc
!=
0
)
if
(
rc
!=
0
)
{
delete
listener
;
return
-
1
;
}
send_plug
(
listener
);
send_own
(
this
,
listener
);
...
...
src/zmq_listener.hpp
View file @
dc8f4b1b
...
...
@@ -35,14 +35,13 @@ namespace zmq
zmq_listener_t
(
class
io_thread_t
*
parent_
,
socket_base_t
*
owner_
,
const
options_t
&
options_
);
~
zmq_listener_t
();
// Set address to listen on.
int
set_address
(
const
char
*
protocol_
,
const
char
*
addr_
);
private
:
~
zmq_listener_t
();
// Handlers for incoming commands.
void
process_plug
();
void
process_unplug
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment