mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
agent,w32: Fix resource leak for a process.
* agent/call-scd.c (agent_scd_check_aliveness): Call assuan_set_flag only for !HAVE_W32_SYSTEM. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
a391d8f4be
commit
fe881167c5
@ -501,7 +501,9 @@ agent_scd_check_aliveness (void)
|
||||
none of these context are actually in use. */
|
||||
struct scd_local_s *sl;
|
||||
|
||||
#ifndef HAVE_W32_SYSTEM
|
||||
assuan_set_flag (primary_scd_ctx, ASSUAN_NO_WAITPID, 1);
|
||||
#endif
|
||||
assuan_release (primary_scd_ctx);
|
||||
|
||||
for (sl=scd_local_list; sl; sl = sl->next_local)
|
||||
|
Loading…
x
Reference in New Issue
Block a user