summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/git2/common.h9
-rw-r--r--src/util.c9
2 files changed, 10 insertions, 8 deletions
diff --git a/include/git2/common.h b/include/git2/common.h
index 11a08f897..f9045210c 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -165,14 +165,7 @@ typedef struct {
size_t count;
} git_strarray;
-GIT_INLINE(void) git_strarray_free(git_strarray *array)
-{
- size_t i;
- for (i = 0; i < array->count; ++i)
- free(array->strings[i]);
-
- free(array->strings);
-}
+GIT_EXTERN(void) git_strarray_free(git_strarray *array);
/** @} */
GIT_END_DECL
diff --git a/src/util.c b/src/util.c
index c9a8e5fe9..bfc4f7b27 100644
--- a/src/util.c
+++ b/src/util.c
@@ -3,6 +3,15 @@
#include <stdarg.h>
#include <stdio.h>
+void git_strarray_free(git_strarray *array)
+{
+ size_t i;
+ for (i = 0; i < array->count; ++i)
+ free(array->strings[i]);
+
+ free(array->strings);
+}
+
int git__fmt(char *buf, size_t buf_sz, const char *fmt, ...)
{
va_list va;