From 7957ad83b53b57f376164b10742d4e35223c9dcc Mon Sep 17 00:00:00 2001 From: Xiaolei Yu Date: Sat, 5 Aug 2017 21:50:14 +0700 Subject: [PATCH] fix a memory leak in probe Signed-off-by: Xiaolei Yu Reviewed-by: Antoine Martin Tested-by: Antoine Martin Signed-off-by: Aaron Plattner --- src/dummy_driver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dummy_driver.c b/src/dummy_driver.c index 03fa1d7..c093f77 100644 --- a/src/dummy_driver.c +++ b/src/dummy_driver.c @@ -254,6 +254,9 @@ DUMMYProbe(DriverPtr drv, int flags) } } } + + free(devSections); + return foundScreen; }