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:
NIIBE Yutaka 2023-05-26 10:08:07 +09:00
parent a391d8f4be
commit fe881167c5
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054
1 changed files with 2 additions and 0 deletions

View File

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