https://bugs.freedesktop.org/show_bug.cgi?id=41373
Summary: memory leak when drmModeRes is freed. Product: DRI Version: unspecified Platform: All OS/Version: All Status: NEW Severity: major Priority: medium Component: libdrm AssignedTo: dri-devel@lists.freedesktop.org ReportedBy: boram1288.park@samsung.com
Created an attachment (id=51822) View: https://bugs.freedesktop.org/attachment.cgi?id=51822 Review: https://bugs.freedesktop.org/review?bug=41373&attachment=51822
Patch for fixing this bug.
The fsb, crtcs, connectors and encoders of drmModeRes are allocated by drmMalloc(). Before freeing drmModeRes, obviously these should be freed in drmModeFreeResources().