summaryrefslogtreecommitdiff
path: root/src/radeon_output.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/radeon_output.c')
-rw-r--r--src/radeon_output.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/radeon_output.c b/src/radeon_output.c
index 9d9a16c..42d37fa 100644
--- a/src/radeon_output.c
+++ b/src/radeon_output.c
@@ -356,9 +356,11 @@ radeon_ddc_connected(xf86OutputPtr output)
break;
}
- if (MonType != MT_NONE)
+ if (MonType != MT_NONE) {
if (!xf86ReturnOptValBool(info->Options, OPTION_IGNORE_EDID, FALSE))
xf86OutputSetEDID(output, MonInfo);
+ } else
+ xfree(MonInfo);
} else
MonType = MT_NONE;