Memory leak of libdrm

Boram Park boram1288.park at samsung.com
Tue Oct 4 21:00:14 PDT 2011


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.


More information about the dri-devel mailing list