mirror of
https://git.proxmox.com/git/libgit2
synced 2026-08-26 18:40:39 +00:00
Export git_strarray_free instead of inlining
That way non-C bindings can use it.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user