fix(rpc): don't free args on error in rpc_send_event

fixup #21631
fixes #21690
This commit is contained in:
bfredl
2023-01-09 13:26:18 +01:00
parent fc2cd28547
commit bb7033a033
2 changed files with 2 additions and 3 deletions

View File

@@ -100,7 +100,6 @@ bool rpc_send_event(uint64_t id, const char *name, Array args)
Channel *channel = NULL;
if (id && (!(channel = find_rpc_channel(id)))) {
api_free_array(args);
return false;
}