authorization: handle strdup failures in realm file parser (v2)

v2 of the patch fixes:
- the opening brace does not belong on a separate line
- if only one of the strdups fails, do not forget to free the other one