[PATCH libdrm] tests: fix memory leak issue