merge: fix memory leak related to merge file opts
This commit is contained in:
parent
cce14aa58b
commit
37bb1a6025
1
merge.go
1
merge.go
|
@ -394,6 +394,7 @@ func MergeFile(ancestor MergeFileInput, ours MergeFileInput, theirs MergeFileInp
|
||||||
return nil, MakeGitError(ecode)
|
return nil, MakeGitError(ecode)
|
||||||
}
|
}
|
||||||
populateCMergeFileOptions(copts, *options)
|
populateCMergeFileOptions(copts, *options)
|
||||||
|
defer freeCMergeFileOptions(copts)
|
||||||
}
|
}
|
||||||
|
|
||||||
runtime.LockOSThread()
|
runtime.LockOSThread()
|
||||||
|
|
Loading…
Reference in New Issue