Skip to content

dbus: client: fix memory leaks and errors

Bartosz Golaszewski linux-gpio 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20241007-dbus-memory-fixes-3c9529124907

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3dbus: client: notify: fix reference countingdbus/client/notify.c+2 -20 replies
2/3dbus: client: notify: free chip and line lists at exitdbus/client/notify.c+2 -00 replies
3/3dbus: client: monitor: free the line list at exitdbus/client/monitor.c+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH libgpiod 0/3] dbus: client: fix memory leaks and errors

The daemon gets good memory leak coverage just by running it through valgrind and executing the gpiocli test-suite. The client is a bit trickier to test so there sure will be more fixes coming.

---
Bartosz Golaszewski (3):
dbus: client: notify: fix reference counting
dbus: client: notify: free chip and line lists at exit
dbus: client: monitor: free the line list at exit

 dbus/client/monitor.c | 1 +
 dbus/client/notify.c  | 6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)

---
base-commit: 0e4198b9eef1eeedf8cf12e970b36d4e50a1da48
change-id: 20241007-dbus-memory-fixes-3c9529124907

Best regards,

Signature · 1 line
Bartosz Golaszewski <[email protected]>