Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

potential memory error caused by unsuitable zmq_msg_* functions #92

Open
microwish opened this issue Mar 28, 2017 · 0 comments
Open

potential memory error caused by unsuitable zmq_msg_* functions #92

microwish opened this issue Mar 28, 2017 · 0 comments

Comments

@microwish
Copy link

zmq_van.h, RecvMsg function;

190 } else if (i == 1) {
191 // task
192 UnpackMeta(buf, size, &(msg->meta));
193 zmq_msg_close(zmsg);
194 bool more = zmq_msg_more(zmsg);
195 delete zmsg;
196 if (!more) break;
197 } else {

Seems we should call line 194 first and then call line 193.

eric-haibin-lin added a commit to eric-haibin-lin/ps-lite that referenced this issue Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant