aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhoulei <zhoulei@kylinos.cn>2023-05-08 10:16:25 +0800
committerzhoulei <zhoulei@kylinos.cn>2023-05-08 10:16:25 +0800
commit2c30500ce19b06c4825fbf362b6fc719f7782334 (patch)
tree00f72f65b8ceb1e82462cd61b0f1e0abb0d5957c
parent47a250ae12008035ee42008b3a8b426e9b96fe11 (diff)
backend/drm: fix di_info memory leak
-rw-r--r--backend/drm/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/drm/util.c b/backend/drm/util.c
index 560127fa..0e7f3f8b 100644
--- a/backend/drm/util.c
+++ b/backend/drm/util.c
@@ -83,6 +83,8 @@ void parse_edid(struct wlr_drm_connector *conn, size_t len, const uint8_t *data)
output->model = di_info_get_model(info);
output->serial = di_info_get_serial(info);
+
+ di_info_destroy(info);
}
const char *drm_connector_status_str(drmModeConnection status) {