1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +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 committed by Werner Koch
parent e6232c995f
commit e4d9fe0556
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -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;