From: Vinson Lee Date: Sat, 21 Nov 2009 00:33:25 +0000 (-0800) Subject: st/egl: Fix memory leak in egl_tracker.c. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7005f7cd1a9947e75bf772897d9055e3fe467c3d;p=mesa.git st/egl: Fix memory leak in egl_tracker.c. (cherry picked from commit 052b127842af3372fd768eae8e29b240a696a12a) --- 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