mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-21 10:09: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:
parent
e6232c995f
commit
e4d9fe0556
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user