Garbage collection is not required for memory safety.
Languages that have garbage collection are not all memory safe.