From 06dec797d44cad3017b493ac27eca9e1c528357c Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Fri, 24 Jul 2015 13:41:16 +0300 Subject: [PATCH] destroysexp on behalf on the sntl now; --- lib/messagesx.c | 4 +++- tests/lv2sd.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/messagesx.c b/lib/messagesx.c index 03ba12c..c49155e 100644 --- a/lib/messagesx.c +++ b/lib/messagesx.c @@ -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; diff --git a/tests/lv2sd.c b/tests/lv2sd.c index 591e2ec..6fd8809 100644 --- a/tests/lv2sd.c +++ b/tests/lv2sd.c @@ -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);