ACCESS: Fixes for memory leaks