Skip to content

Commit

Permalink
fix issue cloudwu#327
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwu committed Aug 21, 2015
1 parent 1b53e6e commit eb587c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion skynet-src/skynet_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,9 @@ int
skynet_send(struct skynet_context * context, uint32_t source, uint32_t destination , int type, int session, void * data, size_t sz) {
if ((sz & MESSAGE_TYPE_MASK) != sz) {
skynet_error(context, "The message to %x is too large", destination);
skynet_free(data);
if (type & PTYPE_TAG_DONTCOPY) {
skynet_free(data);
}
return -1;
}
_filter_args(context, type, &session, (void **)&data, &sz);
Expand Down

0 comments on commit eb587c6

Please sign in to comment.