diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-10-28 14:51:13 -0700 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-10-28 19:02:36 -0700 |
| commit | 3286c408eccb18c525ca123383f3ebf5097441bc (patch) | |
| tree | 4422fe16ab4f7b9cf713e0209cbb74fb4115889e /tests-clay/object | |
| parent | da37654d04617b4dacce6e7a4796007d2854624d (diff) | |
| download | libgit2-3286c408eccb18c525ca123383f3ebf5097441bc.tar.gz | |
global: Properly use `git__` memory wrappers
Ensure that all memory related functions (malloc, calloc, strdup, free,
etc) are using their respective `git__` wrappers.
Diffstat (limited to 'tests-clay/object')
| -rw-r--r-- | tests-clay/object/raw/compare.c | 2 | ||||
| -rw-r--r-- | tests-clay/object/raw/short.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests-clay/object/raw/compare.c b/tests-clay/object/raw/compare.c index 45e5331be..94b196945 100644 --- a/tests-clay/object/raw/compare.c +++ b/tests-clay/object/raw/compare.c @@ -101,7 +101,7 @@ void test_object_raw_compare__compare_allocfmt_oids(void) out = git_oid_allocfmt(&in); cl_assert(out); cl_assert(strcmp(exp, out) == 0); - free(out); + git__free(out); } void test_object_raw_compare__compare_pathfmt_oids(void) diff --git a/tests-clay/object/raw/short.c b/tests-clay/object/raw/short.c index 46e4fba2c..996f3f7b4 100644 --- a/tests-clay/object/raw/short.c +++ b/tests-clay/object/raw/short.c @@ -86,7 +86,7 @@ void test_object_raw_short__oid_shortener_stresstest_git_oid_shorten(void) /* cleanup */ for (i = 0; i < MAX_OIDS; ++i) - free(oids[i]); + git__free(oids[i]); git_oid_shorten_free(os); |
