objres: introduce object resources tracking
This very simplistic system (inspired by Linux kernel "devres") tracks a list of allocated resources. It is intended to automatically release resources allocated by a module instance when either activation fails, or upon deactivation. That is meant to simplify error and cleanup code paths.
Showing with 181 additions and 1 deletion