destroysexp on behalf on the sntl now;
This commit is contained in:
parent
e68b7290b8
commit
06dec797d4
@ -50,7 +50,9 @@ void _message_process(sxmsg_t *msg)
|
|||||||
if(!node) { r = SNE_ENORPC; goto __return_err; }
|
if(!node) { r = SNE_ENORPC; goto __return_err; }
|
||||||
else rpcc = (cx_rpc_t *)usrtc_node_getdata(node);
|
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;
|
return;
|
||||||
|
|
||||||
|
@ -153,6 +153,7 @@ static int __ar_multiply(void *data, sexp_t *sx)
|
|||||||
}
|
}
|
||||||
mult *= atoi(sx_iter->val);
|
mult *= atoi(sx_iter->val);
|
||||||
}
|
}
|
||||||
|
|
||||||
buf = sxmsg_rapidbuf(msg);
|
buf = sxmsg_rapidbuf(msg);
|
||||||
ln = snprintf(buf, MAX_RBBUF_LEN, "(multiply-result %ld)", mult);
|
ln = snprintf(buf, MAX_RBBUF_LEN, "(multiply-result %ld)", mult);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user