Memory leak of libdrm

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

Hello Chris Wilson.

git : git://
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.

Could you review if it's a bug or not?

Many thanks

More information about the dri-devel mailing list