Check that every metadata key has a sane value
Don't free path when we still need it