mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 07:20:37 +02:00
st/egl: Fix memory leak in egl_tracker.c.
(cherry picked from commit 052b127842)
This commit is contained in:
parent
c994f08eb1
commit
7005f7cd1a
1 changed files with 1 additions and 1 deletions
|
|
@ -85,11 +85,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…
Add table
Reference in a new issue