destroysexp on behalf on the sntl now;

v0.5.xx
Alexander Vdolainen 10 years ago
parent e68b7290b8
commit 06dec797d4

@ -50,7 +50,9 @@ void _message_process(sxmsg_t *msg)
if(!node) { r = SNE_ENORPC; goto __return_err; }
else rpcc = (cx_rpc_t *)usrtc_node_getdata(node);
rpcc->rpcf((void *)msg, sx); /* sx *MUST* be destroy asap */
rpcc->rpcf((void *)msg, sx);
destroy_sexp(sx);
return;

@ -153,6 +153,7 @@ static int __ar_multiply(void *data, sexp_t *sx)
}
mult *= atoi(sx_iter->val);
}
buf = sxmsg_rapidbuf(msg);
ln = snprintf(buf, MAX_RBBUF_LEN, "(multiply-result %ld)", mult);

Loading…
Cancel
Save