[Bug report] UBA agent can crash when there is no free memory

Thanks for this. I think this case can now be marked as solved - with those fixes submitted we can use Clang with UBA to avoid the memory allocation issues.