Did you want to `free(repo->namespace)` before setting it to NULL? Otherwise we leak when turning off namespaces.