diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c index c1e89f31..2899deb4 100644 --- a/tests/modetest/modetest.c +++ b/tests/modetest/modetest.c @@ -2150,6 +2150,7 @@ int main(int argc, char **argv) } free_resources(dev.resources); + drmClose(dev.fd); return 0; }