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

sendname bug #31

Closed
lparam opened this issue Aug 16, 2013 · 1 comment
Closed

sendname bug #31

lparam opened this issue Aug 16, 2013 · 1 comment

Comments

@lparam
Copy link

lparam commented Aug 16, 2013

skynet_server.c:624
if (des == 0) {
free(data);
skynet_error(context, "Drop message to %s", addr);
return session;
}
这里可能会free不是在堆上分配的数据.
patch:
int dontcopy = type & PTYPE_TAG_DONTCOPY;
if (dontcopy) {
free(data)
}

@cloudwu
Copy link
Owner

cloudwu commented Aug 16, 2013

thanks, fix it

@cloudwu cloudwu closed this as completed Aug 16, 2013
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

2 participants