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:
parent
51b7bb9106
commit
40707c8bff
@ -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 = NULL;
|
||||||
g->primary_ctx_reusable = 0;
|
g->primary_ctx_reusable = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user