From 793cf69e8f57f21f0c6959b9fa172c5ebb08dcd7 Mon Sep 17 00:00:00 2001 From: xenos1984 <> Date: Sun, 1 Oct 2023 14:03:43 +0000 Subject: [PATCH] 72_UBUS_CLIENT.pm: fixed memory leak, remember only own RPCs git-svn-id: https://svn.fhem.de/fhem/trunk@28015 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/72_UBUS_CLIENT.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/72_UBUS_CLIENT.pm b/fhem/FHEM/72_UBUS_CLIENT.pm index a2f8624b8..6c53dfcb5 100644 --- a/fhem/FHEM/72_UBUS_CLIENT.pm +++ b/fhem/FHEM/72_UBUS_CLIENT.pm @@ -340,7 +340,7 @@ sub Write return if IsDisabled($name); my $dev = shift // return; # Logical device name - my $method = shift // q{}; # Mehod (list, call, subscribe...) + my $method = shift // q{}; # Method (list, call, subscribe...) my $id = "$dev:$method:" . (++$hash->{lastid}); my $rpcparam; @@ -432,7 +432,10 @@ sub Write Log3($name, 5, "UBUS ($name) - sent: $json"); - $hash->{rpc}{$id} = $request; + if($dev eq $name) + { + $hash->{rpc}{$id} = $request; + } if($hash->{method} eq 'websocket') {