Fix a possible use-after-free.

If g_mapped_file_new fails, then `version` will be freed, but it was
already added to the hash table. This means there could be a
use-after-free while doing a lookup on the hash table the next time.
parent 763d054d
Pipeline #55544 passed with stages
in 6 minutes and 5 seconds