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