aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2024-10-22 00:51:03 +0000
committerWerner Koch <[email protected]>2024-11-13 09:39:49 +0000
commite4d9fe05561148861e41a100e706ea86ac99700e (patch)
tree99c85f30e99ef8d5e8c9b02c4c06c4139000a7ee
parentgpgconf: Show also the used nPth version with -V (diff)
downloadgnupg-e4d9fe05561148861e41a100e706ea86ac99700e.tar.gz
gnupg-e4d9fe05561148861e41a100e706ea86ac99700e.zip
agent: Fix resource leak for PRIMARY_CTX.
* agent/call-daemon.c (wait_child_thread): Call assuan_release for PRIMARY_CTX when it's kept for reuse. -- Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--agent/call-daemon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/agent/call-daemon.c b/agent/call-daemon.c
index 318d31e79..2599fc7f2 100644
--- a/agent/call-daemon.c
+++ b/agent/call-daemon.c
@@ -175,6 +175,9 @@ wait_child_thread (void *arg)
}
}
+ if (g->primary_ctx_reusable)
+ assuan_release (g->primary_ctx);
+
g->primary_ctx = NULL;
g->primary_ctx_reusable = 0;