summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2008-10-10 13:45:51 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2008-10-10 13:45:51 +0800
commit05cdef18ca668ffc86b71033f71cfbd262cdd994 (patch)
treece1fc7fb063de460519e440eeb7cc225031178da
parent2d9da7a5f384d5f38b2be79b1ea0df5a3deb52d1 (diff)
Don't leak EDID_block
-rw-r--r--hw/xfree86/ddc/xf86DDC.c1
1 files changed, 1 insertions, 0 deletions
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;