From aba5a2fa172ed135944a574f07a0cc2ac069034a Mon Sep 17 00:00:00 2001 From: midipix Date: Jun 09 2020 14:33:52 +0000 Subject: toks_free_driver_ctx(): close the client-side port handle as needed. --- diff --git a/src/driver/toks_driver_ctx.c b/src/driver/toks_driver_ctx.c index 36f494e..eb3738f 100644 --- a/src/driver/toks_driver_ctx.c +++ b/src/driver/toks_driver_ctx.c @@ -492,6 +492,9 @@ static void toks_free_driver_ctx_impl(struct toks_driver_ctx_alloc * ictx) if (ictx->ctx.hsvclink) ntapi->zw_close(ictx->ctx.hsvclink); + if (ictx->ctx.hservice) + ntapi->zw_close(ictx->ctx.hservice); + if (ictx->ctx.tokens) toks_free(ictx->ctx.tokens);