destroysexp on behalf on the sntl now;

This commit is contained in:
Alexander Vdolainen 2015-07-24 13:41:16 +03:00
parent e68b7290b8
commit 06dec797d4
2 changed files with 4 additions and 1 deletions

@ -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);