Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0ab1ca

Browse files
committed
Merge pull request libgit2#3523 from pks-t/memleak-fixes
Memleak fixes
2 parents 41854c7 + 77b79dd commit e0ab1ca

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

tests/config/global.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void test_config_global__open_programdata(void)
7373
git_buf config_path = GIT_BUF_INIT;
7474
git_buf var_contents = GIT_BUF_INIT;
7575

76-
if (!cl_getenv("GITTEST_INVASIVE_FS_STRUCTURE"))
76+
if (cl_is_env_set("GITTEST_INVASIVE_FS_STRUCTURE"))
7777
cl_skip();
7878

7979
cl_git_pass(git_libgit2_opts(GIT_OPT_GET_SEARCH_PATH,

tests/config/stress.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,7 @@ void test_config_stress__quick_write(void)
126126
cl_git_pass(git_config_get_int32(&val, config_r, key));
127127
cl_assert_equal_i(i, val);
128128
}
129+
130+
git_config_free(config_r);
131+
git_config_free(config_w);
129132
}

tests/win32/longpath.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ void assert_name_too_long(void)
4646

4747
/* check the suffix */
4848
cl_assert_equal_s(expected_msg, err->message + (actual_len - expected_len));
49+
50+
git__free(expected_msg);
4951
}
5052
#endif
5153

0 commit comments

Comments
 (0)