From c0140d74a16bb6821d24ff4cfa5325e529948701 Mon Sep 17 00:00:00 2001 From: Xenofon Foukas <137962+xfoukas@users.noreply.github.com> Date: Fri, 22 Nov 2024 12:07:38 -0500 Subject: [PATCH] Bugfix for memory not being released in ipc example (#7) --- examples/first_example_ipc/example_collect_control.cpp | 2 ++ jbpf | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/first_example_ipc/example_collect_control.cpp b/examples/first_example_ipc/example_collect_control.cpp index 06a8422..cf04b05 100644 --- a/examples/first_example_ipc/example_collect_control.cpp +++ b/examples/first_example_ipc/example_collect_control.cpp @@ -42,6 +42,8 @@ handle_channel_bufs( { std::cerr << "Failed to serialize message. Got return code: " << serialized_size << std::endl; } + + jbpf_io_channel_release_buf(bufs[i]); } } } diff --git a/jbpf b/jbpf index d821e42..eabdeed 160000 --- a/jbpf +++ b/jbpf @@ -1 +1 @@ -Subproject commit d821e42e56884ebdf5d66520ed2df30f136a90af +Subproject commit eabdeed69001962a1e4b9f55a8d6cba0e4f8015b