virgl/egl: call closedir to avoid leaking memory

macos/master
Dave Airlie 10 years ago
parent 681480f204
commit 9521a43f90
  1. 1
      src/virgl_egl_context.c

@ -84,6 +84,7 @@ static int egl_rendernode_open(void)
break; break;
} }
closedir(dir);
if (fd < 0) if (fd < 0)
return -1; return -1;
return fd; return fd;

Loading…
Cancel
Save