feat(src): Memory management