Fix leaks found by running the DRM smoke test with ASan
This fixes most of the leaks when running the DRM smoke test.
But there are some that were not fixed in this MR, as they depend on !641 (merged).
This fixes most of the leaks when running the DRM smoke test.
But there are some that were not fixed in this MR, as they depend on !641 (merged).