st/egl: Fix memory leak in egl_tracker.c.
This commit is contained in:
parent
ea98e9820d
commit
052b127842
|
@ -88,11 +88,11 @@ drm_get_device_id(struct drm_device *device)
|
|||
}
|
||||
|
||||
ret = fgets(path, sizeof( path ), file);
|
||||
fclose(file);
|
||||
if (!ret)
|
||||
return;
|
||||
|
||||
sscanf(path, "%x", &device->deviceID);
|
||||
fclose(file);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue