diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-11-17 11:45:09 -0500 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-11-17 11:46:48 -0500 |
commit | 9b8605d4e2bf7703c7848f3e2022a8c7328a3acd (patch) | |
tree | d20c3ec42ca7c15326625efbca717fcd551b9aa4 | |
parent | ce8299962003de572122561a6f7f61eaccf633b2 (diff) |
radeon: fix potential memory leak in ddc code
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
-rw-r--r-- | src/radeon_output.c | 4 |
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; |