repo: Fix file descriptor leak from previous commit

I keep forgetting mmap doesn't take ownership of the fd.