You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi,
May be a bug in /libmdp/src/mdp_broker.c
static void
s_broker_worker_msg (broker_t *self, zframe_t *sender, zmsg_t *msg)
{
... ...
free (command); //! this only free, but not close message, should be zframe_destroy(&command)?
zmsg_destroy (&msg);
}
by the way, for worker/client commands, why not use one byte to instead of string(four bytes).
And one time only use one zmq_msg_t may be better, which not need to malloc frequently.
ths
chen baokai
The text was updated successfully, but these errors were encountered:
hi,
May be a bug in /libmdp/src/mdp_broker.c
static void
s_broker_worker_msg (broker_t *self, zframe_t *sender, zmsg_t *msg)
{
... ...
free (command); //! this only free, but not close message, should be zframe_destroy(&command)?
zmsg_destroy (&msg);
}
by the way, for worker/client commands, why not use one byte to instead of string(four bytes).
And one time only use one zmq_msg_t may be better, which not need to malloc frequently.
ths
chen baokai
The text was updated successfully, but these errors were encountered: