[hw/dmx 3/7] hw/dmx/config/dmxcompat.c: Fix resource leak

Niels Thykier niels at thykier.net
Fri Nov 2 02:41:49 PDT 2012


Signed-off-by: Niels Thykier <niels at thykier.net>
---
 hw/dmx/config/dmxcompat.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/dmx/config/dmxcompat.c b/hw/dmx/config/dmxcompat.c
index bd9f127..f8d5dfc 100644
--- a/hw/dmx/config/dmxcompat.c
+++ b/hw/dmx/config/dmxcompat.c
@@ -228,5 +228,7 @@ dmxVDLRead(const char *filename)
             break;
         }
     }
+    if (filename)
+        fclose(str);
     return entry;
 }
-- 
1.7.10.4



More information about the xorg-devel mailing list