rtl/memory: cleanup variable declaration.