summaryrefslogtreecommitdiff
path: root/tag.go
diff options
context:
space:
mode:
Diffstat (limited to 'tag.go')
-rw-r--r--tag.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tag.go b/tag.go
index 1bea2b7..20b9ba2 100644
--- a/tag.go
+++ b/tag.go
@@ -159,7 +159,7 @@ func (c *TagsCollection) List() ([]string, error) {
if ecode < 0 {
return nil, MakeGitError(ecode)
}
- defer C.git_strarray_free(&strC)
+ defer C.git_strarray_dispose(&strC)
tags := makeStringsFromCStrings(strC.strings, int(strC.count))
return tags, nil
@@ -183,7 +183,7 @@ func (c *TagsCollection) ListWithMatch(pattern string) ([]string, error) {
if ecode < 0 {
return nil, MakeGitError(ecode)
}
- defer C.git_strarray_free(&strC)
+ defer C.git_strarray_dispose(&strC)
tags := makeStringsFromCStrings(strC.strings, int(strC.count))
return tags, nil