diff options
Diffstat (limited to 'src/command.cpp')
-rw-r--r-- | src/command.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. */ +#include <stdlib.h> + #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 */; + } } |