Fix bug with double freeing redir_stack
Fix outlinks list traversal in validate_outlinks_get_backlinks, close socket at the end of validate_url_and_populate