mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-02 12:29:08 +00:00
Fix 3 memory leaks
This commit is contained in:
parent
ae386101d2
commit
cfc39f5078
@ -487,6 +487,7 @@ int gitno_connect(gitno_socket *s_out, const char *host, const char *port, int f
|
||||
/* Oops, we couldn't connect to any address */
|
||||
if (s == INVALID_SOCKET && p == NULL) {
|
||||
giterr_set(GITERR_OS, "Failed to connect to %s", host);
|
||||
p_freeaddrinfo(info);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -21,6 +21,7 @@ void test_checkout_crlf__initialize(void)
|
||||
g_repo = cl_git_sandbox_init("crlf");
|
||||
|
||||
cl_git_pass(git_repository_head_tree(&tree, g_repo));
|
||||
git_tree_free(tree);
|
||||
}
|
||||
|
||||
void test_checkout_crlf__cleanup(void)
|
||||
|
@ -78,6 +78,7 @@ void test_network_remotes__error_when_no_push_available(void)
|
||||
cl_git_fail_with(git_push_finish(p), GIT_ERROR);
|
||||
|
||||
git_push_free(p);
|
||||
t->free(t);
|
||||
git_remote_free(r);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user