1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-10-29 19:48:43 +01:00

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 <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2024-10-22 09:51:03 +09:00
parent 51b7bb9106
commit 40707c8bff
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054

View File

@ -134,6 +134,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;