improved parsion of the lines (remove white-space from end of line)
when parsing a rule, free 'ipcopy' even when there's an error
calling pg_freeaddrinfo_all() whenever (gai_result != 0) is appropriate
fixed per_ip counter (per_database was used by mistake)
fixed insufficient check whether a backend is valid (store and check additional info)