> > So we leak all dynamically created objects? There's no > kfree(intel_connector) here and we cannot add it because > drm_mode_object_find() is not ref-counted. So we keep the connector in > the mode_group and wait until the final drm_mode_config_cleanup()? But > drm_connector_cleanup() already removes the connector from the > mode-group, so we eventually leak the object. > Seems like freeing it should be fine, it was just an oversight, Since any objects you get with find are only valid under mode_config.mutex, yes some drivers mess this up, but they should be fixed. Dave. _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx