summaryrefslogtreecommitdiff
path: root/src/strarray.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/strarray.c')
-rw-r--r--src/strarray.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/strarray.c b/src/strarray.c
index ebd581483..7ad413404 100644
--- a/src/strarray.c
+++ b/src/strarray.c
@@ -29,7 +29,7 @@ int git_strarray_copy(git_strarray *tgt, const git_strarray *src)
tgt->strings[tgt->count] = git__strdup(src->strings[i]);
if (!tgt->strings[tgt->count]) {
- git_strarray_free(tgt);
+ git_strarray_dispose(tgt);
memset(tgt, 0, sizeof(*tgt));
return -1;
}
@@ -40,7 +40,7 @@ int git_strarray_copy(git_strarray *tgt, const git_strarray *src)
return 0;
}
-void git_strarray_free(git_strarray *array)
+void git_strarray_dispose(git_strarray *array)
{
size_t i;
@@ -54,3 +54,8 @@ void git_strarray_free(git_strarray *array)
memset(array, 0, sizeof(*array));
}
+
+void git_strarray_free(git_strarray *array)
+{
+ git_strarray_dispose(array);
+}