aboutsummaryrefslogtreecommitdiffstats
path: root/extcap_spawn.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2017-08-28 15:27:41 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2017-08-28 17:13:03 +0000
commit464679f80f60173589b6f3476abc1e6177d1a43f (patch)
treee2e51d8cbd674bee64c8c0383426e957287e9347 /extcap_spawn.c
parent287221e8d9591bf252392ec34959e24c49fcd275 (diff)
extcap: Close control handles when done
Ensure the event handles are closed when done to avoid leakages. Also improved the control reader to use WaitForSingleObject(). Change-Id: I1679d9c09e247b28117ec05c3e1b0f3ba0e99674 Ping-Bug: 13833 Reviewed-on: https://code.wireshark.org/review/23263 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'extcap_spawn.c')
-rw-r--r--extcap_spawn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/extcap_spawn.c b/extcap_spawn.c
index d88c3945d0..a4d5e0d9c0 100644
--- a/extcap_spawn.c
+++ b/extcap_spawn.c
@@ -379,6 +379,7 @@ extcap_wait_for_pipe(HANDLE * pipe_handles, int num_pipe_handles, HANDLE pid)
else
{
pipeinsts[idx].pendingIO = FALSE;
+ CloseHandle(pipeinsts[idx].ol.hEvent);
num_waiting_to_connect--;
}
}