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
7a960ff2
Commit
7a960ff2
authored
Oct 04, 2013
by
Volodymyr Korniichuk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
useless checks were removed
parent
23e58e30
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
20 deletions
+10
-20
ctx.cpp
src/ctx.cpp
+2
-4
mtrie.cpp
src/mtrie.cpp
+1
-2
session_base.cpp
src/session_base.cpp
+1
-2
stream_engine.cpp
src/stream_engine.cpp
+3
-6
trie.cpp
src/trie.cpp
+1
-2
yqueue.hpp
src/yqueue.hpp
+2
-4
No files found.
src/ctx.cpp
View file @
7a960ff2
...
...
@@ -74,14 +74,12 @@ zmq::ctx_t::~ctx_t ()
delete
io_threads
[
i
];
// Deallocate the reaper thread object.
if
(
reaper
)
delete
reaper
;
delete
reaper
;
// Deallocate the array of mailboxes. No special work is
// needed as mailboxes themselves were deallocated with their
// corresponding io_thread/socket objects.
if
(
slots
)
free
(
slots
);
free
(
slots
);
// Remove the tag, so that the object is considered dead.
tag
=
ZMQ_CTX_TAG_VALUE_BAD
;
...
...
src/mtrie.cpp
View file @
7a960ff2
...
...
@@ -54,8 +54,7 @@ zmq::mtrie_t::~mtrie_t ()
else
if
(
count
>
1
)
{
for
(
unsigned
short
i
=
0
;
i
!=
count
;
++
i
)
if
(
next
.
table
[
i
])
delete
next
.
table
[
i
];
delete
next
.
table
[
i
];
free
(
next
.
table
);
}
}
...
...
src/session_base.cpp
View file @
7a960ff2
...
...
@@ -96,8 +96,7 @@ zmq::session_base_t::~session_base_t ()
if
(
engine
)
engine
->
terminate
();
if
(
addr
)
delete
addr
;
delete
addr
;
}
void
zmq
::
session_base_t
::
attach_pipe
(
pipe_t
*
pipe_
)
...
...
src/stream_engine.cpp
View file @
7a960ff2
...
...
@@ -114,12 +114,9 @@ zmq::stream_engine_t::~stream_engine_t ()
int
rc
=
tx_msg
.
close
();
errno_assert
(
rc
==
0
);
if
(
encoder
!=
NULL
)
delete
encoder
;
if
(
decoder
!=
NULL
)
delete
decoder
;
if
(
mechanism
!=
NULL
)
delete
mechanism
;
delete
encoder
;
delete
decoder
;
delete
mechanism
;
}
void
zmq
::
stream_engine_t
::
plug
(
io_thread_t
*
io_thread_
,
...
...
src/trie.cpp
View file @
7a960ff2
...
...
@@ -48,8 +48,7 @@ zmq::trie_t::~trie_t ()
else
if
(
count
>
1
)
{
for
(
unsigned
short
i
=
0
;
i
!=
count
;
++
i
)
if
(
next
.
table
[
i
])
delete
next
.
table
[
i
];
delete
next
.
table
[
i
];
free
(
next
.
table
);
}
}
...
...
src/yqueue.hpp
View file @
7a960ff2
...
...
@@ -72,8 +72,7 @@ namespace zmq
}
chunk_t
*
sc
=
spare_chunk
.
xchg
(
NULL
);
if
(
sc
)
free
(
sc
);
free
(
sc
);
}
// Returns reference to the front element of the queue.
...
...
@@ -156,8 +155,7 @@ namespace zmq
// so for cache reasons we'll get rid of the spare and
// use 'o' as the spare.
chunk_t
*
cs
=
spare_chunk
.
xchg
(
o
);
if
(
cs
)
free
(
cs
);
free
(
cs
);
}
}
...
...
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