From 2e78e48503375a415d95ee8df80df9c065172abc Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Fri, 12 Feb 2010 20:49:00 +0100 Subject: Multi-hop REQ/REP, part V., peer identity is passed from init object to session --- src/command.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/command.cpp') diff --git a/src/command.cpp b/src/command.cpp index fcb5729..7564fe2 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -17,8 +17,18 @@ along with this program. If not, see . */ +#include + #include "command.hpp" void zmq::deallocate_command (command_t *cmd_) { + switch (cmd_->type) { + case command_t::attach: + if (cmd_->args.attach.peer_identity) + free (cmd_->args.attach.peer_identity); + break; + default: + /* noop */; + } } -- cgit v1.2.3