[PATCH xf86-video-dummy] fix a memory leak in probe

Xiaolei Yu dreifachstein at gmail.com
Sat Jul 22 12:43:09 UTC 2017


Signed-off-by: Xiaolei Yu <dreifachstein at gmail.com>
---
 src/dummy_driver.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/dummy_driver.c b/src/dummy_driver.c
index 2656602..5c5f00f 100644
--- a/src/dummy_driver.c
+++ b/src/dummy_driver.c
@@ -263,6 +263,9 @@ DUMMYProbe(DriverPtr drv, int flags)
 	    }
 	}
     }    
+
+    free(devSections);
+
     return foundScreen;
 }
 
-- 
2.13.3



More information about the xorg-devel mailing list