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
86d68cbc
Commit
86d68cbc
authored
Dec 18, 2009
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memory leaks related to OpenPGM errors fixed
parent
500d32a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
pgm_socket.cpp
src/pgm_socket.cpp
+7
-4
No files found.
src/pgm_socket.cpp
View file @
86d68cbc
...
...
@@ -141,13 +141,11 @@ int zmq::pgm_socket_t::open_transport ()
return
-
1
;
}
//zmq_log (1, "Transport GSI: %s, %s(%i)\n", pgm_print_gsi (&gsi),
// __FILE__, __LINE__);
struct
pgm_transport_info_t
*
res
=
NULL
;
if
(
!
pgm_if_get_transport_info
(
network
,
NULL
,
&
res
,
&
pgm_error
))
{
errno
=
EINVAL
;
g_error_free
(
pgm_error
);
return
-
1
;
}
...
...
@@ -160,10 +158,11 @@ int zmq::pgm_socket_t::open_transport ()
res
->
ti_udp_encap_mcast_port
=
port_number
;
}
if
(
!
pgm_transport_create
(
&
transport
,
res
,
&
pgm_error
))
{
if
(
!
pgm_transport_create
(
&
transport
,
res
,
&
pgm_error
))
{
pgm_if_free_transport_info
(
res
);
// TODO: tranlate errors from glib into errnos.
errno
=
EINVAL
;
g_error_free
(
pgm_error
);
return
-
1
;
}
...
...
@@ -318,6 +317,8 @@ int zmq::pgm_socket_t::open_transport ()
// Bind a transport to the specified network devices.
if
(
!
pgm_transport_bind
(
transport
,
&
pgm_error
))
{
// TODO: tranlate errors from glib into errnos.
errno
=
EINVAL
;
g_error_free
(
pgm_error
);
return
-
1
;
}
...
...
@@ -514,6 +515,8 @@ ssize_t zmq::pgm_socket_t::receive (void **raw_data_, const pgm_tsi_t **tsi_)
nbytes_rec
=
0
;
// In case of dala loss -1 is returned.
errno
=
EINVAL
;
g_error_free
(
pgm_error
);
return
-
1
;
}
...
...
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