diff options
author | Vinson Lee <[email protected]> | 2009-11-20 16:33:25 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2009-12-06 01:15:24 -0800 |
commit | 7005f7cd1a9947e75bf772897d9055e3fe467c3d (patch) | |
tree | 11a728acd3fec0c277c788eeb8482cc06c37bd48 /src/gallium/state_trackers/egl | |
parent | c994f08eb1ec2a4bbaa44fbd6d35e7ff033d5c3c (diff) |
st/egl: Fix memory leak in egl_tracker.c.
(cherry picked from commit 052b127842af3372fd768eae8e29b240a696a12a)
Diffstat (limited to 'src/gallium/state_trackers/egl')
-rw-r--r-- | src/gallium/state_trackers/egl/egl_tracker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/egl/egl_tracker.c b/src/gallium/state_trackers/egl/egl_tracker.c index 5140755001c..4548b4fd27c 100644 --- a/src/gallium/state_trackers/egl/egl_tracker.c +++ b/src/gallium/state_trackers/egl/egl_tracker.c @@ -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 |