mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-30 00:04:03 +00:00
Fix memory leaks in diff rename tests
This fixes a couple objects I forgot to free, and also updates the valgrind suppressions file on the Mac to cover a few more cases that had crept in.
This commit is contained in:
parent
f3b5bc835a
commit
de0555a347
@ -947,6 +947,7 @@ void test_diff_rename__case_changes_are_split(void)
|
|||||||
|
|
||||||
git_diff_list_free(diff);
|
git_diff_list_free(diff);
|
||||||
git_index_free(index);
|
git_index_free(index);
|
||||||
|
git_tree_free(tree);
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_diff_rename__unmodified_can_be_renamed(void)
|
void test_diff_rename__unmodified_can_be_renamed(void)
|
||||||
@ -993,4 +994,6 @@ void test_diff_rename__unmodified_can_be_renamed(void)
|
|||||||
cl_assert_equal_i(1, exp.file_status[GIT_DELTA_RENAMED]);
|
cl_assert_equal_i(1, exp.file_status[GIT_DELTA_RENAMED]);
|
||||||
|
|
||||||
git_diff_list_free(diff);
|
git_diff_list_free(diff);
|
||||||
|
git_index_free(index);
|
||||||
|
git_tree_free(tree);
|
||||||
}
|
}
|
||||||
|
@ -113,24 +113,18 @@
|
|||||||
{
|
{
|
||||||
mac-ssl-leak-1
|
mac-ssl-leak-1
|
||||||
Memcheck:Leak
|
Memcheck:Leak
|
||||||
fun:malloc
|
|
||||||
fun:CRYPTO_malloc
|
|
||||||
...
|
...
|
||||||
fun:ERR_load_strings
|
fun:ERR_load_strings
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mac-ssl-leak-2
|
mac-ssl-leak-2
|
||||||
Memcheck:Leak
|
Memcheck:Leak
|
||||||
fun:malloc
|
|
||||||
fun:CRYPTO_malloc
|
|
||||||
...
|
...
|
||||||
fun:SSL_library_init
|
fun:SSL_library_init
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mac-ssl-leak-3
|
mac-ssl-leak-3
|
||||||
Memcheck:Leak
|
Memcheck:Leak
|
||||||
fun:malloc
|
|
||||||
fun:strdup
|
|
||||||
...
|
...
|
||||||
fun:si_module_with_name
|
fun:si_module_with_name
|
||||||
fun:getaddrinfo
|
fun:getaddrinfo
|
||||||
@ -143,6 +137,14 @@
|
|||||||
...
|
...
|
||||||
fun:ssl3_get_server_certificate
|
fun:ssl3_get_server_certificate
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
mac-ssl-leak-5
|
||||||
|
Memcheck:Leak
|
||||||
|
fun:malloc
|
||||||
|
fun:CRYPTO_malloc
|
||||||
|
...
|
||||||
|
fun:ERR_put_error
|
||||||
|
}
|
||||||
{
|
{
|
||||||
clar-printf-buf
|
clar-printf-buf
|
||||||
Memcheck:Leak
|
Memcheck:Leak
|
||||||
|
Loading…
Reference in New Issue
Block a user