diff options
author | Russell King <rmk@armlinux.org.uk> | 2018-06-28 00:10:59 +0100 |
---|---|---|
committer | Russell King <rmk@armlinux.org.uk> | 2018-07-13 18:13:11 +0100 |
commit | 54ab37c4d91a9c4cd848ae2f62dcb24376c9314d (patch) | |
tree | 921b027cc495c8c60f53872841d3a7ecd6594970 | |
parent | 765b561cb8f48e77380b01e8585cebca8785b5f1 (diff) |
src: ensure we free EDID blob
Ensure that we free the EDID blob after we've parsed it, rather than
leaking its memory.
Signed-off-by: Russell King <rmk@armlinux.org.uk>
-rw-r--r-- | src/common_drm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common_drm.c b/src/common_drm.c index 7ac245f..1ae7c8d 100644 --- a/src/common_drm.c +++ b/src/common_drm.c @@ -338,6 +338,8 @@ static DisplayModePtr common_drm_conn_get_modes(xf86OutputPtr output) mon->flags |= MONITOR_EDID_COMPLETE_RAWDATA; xf86OutputSetEDID(output, mon); + drmModeFreePropertyBlob(edid); + /* modes should already be available */ for (i = 0; i < conn->mode_output->count_modes; i++) { DisplayModePtr mode = xnfalloc(sizeof *mode); |