summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-11-20 16:33:25 -0800
committerVinson Lee <[email protected]>2009-11-20 16:33:25 -0800
commit052b127842af3372fd768eae8e29b240a696a12a (patch)
tree1db73c68f742c69e54ed195020c361dd7926775a /src/gallium
parentea98e9820d7117f7a187f355445796b1ef5d9e0c (diff)
st/egl: Fix memory leak in egl_tracker.c.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/egl/egl_tracker.c2
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 5811c20f03e..745803c7eb0 100644
--- a/src/gallium/state_trackers/egl/egl_tracker.c
+++ b/src/gallium/state_trackers/egl/egl_tracker.c
@@ -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