From 05cdef18ca668ffc86b71033f71cfbd262cdd994 Mon Sep 17 00:00:00 2001 From: Zhenyu Wang Date: Fri, 10 Oct 2008 13:45:51 +0800 Subject: [PATCH] Don't leak EDID_block --- hw/xfree86/ddc/xf86DDC.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/xfree86/ddc/xf86DDC.c b/hw/xfree86/ddc/xf86DDC.c index 0d8677637..ad8feef16 100644 --- a/hw/xfree86/ddc/xf86DDC.c +++ b/hw/xfree86/ddc/xf86DDC.c @@ -249,6 +249,7 @@ xf86DoEEDID(int scrnIndex, I2CBusPtr pBus, Bool complete) tmp = xf86InterpretEEDID(scrnIndex, EDID_block); } + xfree(EDID_block); if (tmp && complete) tmp->flags |= EDID_COMPLETE_RAWDATA;