summaryrefslogtreecommitdiff
path: root/describe.go
diff options
context:
space:
mode:
Diffstat (limited to 'describe.go')
-rw-r--r--describe.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/describe.go b/describe.go
index 0b75076..f7036df 100644
--- a/describe.go
+++ b/describe.go
@@ -212,7 +212,7 @@ func (result *DescribeResult) Format(opts *DescribeFormatOptions) (string, error
if ecode < 0 {
return "", MakeGitError(ecode)
}
- defer C.git_buf_free(&resultBuf)
+ defer C.git_buf_dispose(&resultBuf)
return C.GoString(resultBuf.ptr), nil
}