aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2023-07-06 07:02:14 +0000
committerNIIBE Yutaka <[email protected]>2023-07-06 07:02:14 +0000
commit8cacfce898f2fcacc08292592b4ccb74602fc83d (patch)
treef513524d577f706f55846e1d71d14b63fa109a9f
parentkbx: Use es_sysopen_nc instead of es_fdopen_nc. (diff)
downloadgnupg-8cacfce898f2fcacc08292592b4ccb74602fc83d.tar.gz
gnupg-8cacfce898f2fcacc08292592b4ccb74602fc83d.zip
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 <[email protected]>
-rw-r--r--kbx/kbx-client-util.c1
1 files changed, 1 insertions, 0 deletions
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;
}