Added GITERR_CHECK_ALLOC

This commit is contained in:
Brad Morgan 2013-05-15 12:51:40 -04:00
parent a6b79b9bdc
commit 84ac625ddd

View File

@ -336,6 +336,7 @@ static int _git_ssh_setup_conn(
if (git_ssh_extract_url_parts(&host, &user, url) < 0) if (git_ssh_extract_url_parts(&host, &user, url) < 0)
goto on_error; goto on_error;
port = git__strdup(default_port); port = git__strdup(default_port);
GITERR_CHECK_ALLOC(port);
} }
if (gitno_connect(&s->socket, host, port, 0) < 0) if (gitno_connect(&s->socket, host, port, 0) < 0)