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).
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
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).