From 8cacfce898f2fcacc08292592b4ccb74602fc83d Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 6 Jul 2023 16:02:14 +0900 Subject: [PATCH] kbx: Fix memory leak at spawning a thread for data pipe. * kbx/kbx-client-util.c (prepare_data_pipe): Release the attribute for thread creation. -- Signed-off-by: NIIBE Yutaka --- kbx/kbx-client-util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kbx/kbx-client-util.c b/kbx/kbx-client-util.c index ca791d4a3..9c7b57f2f 100644 --- a/kbx/kbx-client-util.c +++ b/kbx/kbx-client-util.c @@ -167,6 +167,7 @@ prepare_data_pipe (kbx_client_data_t kcd) return err; } + npth_attr_destroy (&tattr); return 0; }