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().
https://bugs.freedesktop.org/show_bug.cgi?id=41373
--- Comment #1 from Boram Park boram1288.park@samsung.com 2011-09-30 17:32:09 PDT --- Created an attachment (id=51824) View: https://bugs.freedesktop.org/attachment.cgi?id=51824 Review: https://bugs.freedesktop.org/review?bug=41373&attachment=51824
another patch for memory leak
Hello Chris Wilson.
git : git://anongit.freedesktop.org/git/mesa/drm branch : master
I found some memory leaks in xf86drmMode.c.
When we call drmModeGetResources(), fbs, crtcs, connectors and encoders are newly allocated. But, drmModeFreeResources() doesn't free them. drmModeFreeProperty() also doesn't free blob_ids.
I reported it to bugzilla and attached two patch files. - https://bugs.freedesktop.org/show_bug.cgi?id=41373
Could you review if it's a bug or not?
Many thanks Boram.
https://bugs.freedesktop.org/show_bug.cgi?id=41373
GitLab Migration User gitlab-migration@fdo.invalid changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |MOVED Status|NEW |RESOLVED
--- Comment #2 from GitLab Migration User gitlab-migration@fdo.invalid --- -- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/drm/issues/5.
dri-devel@lists.freedesktop.org