Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquayj committed Jul 5, 2018
1 parent d77ee05 commit 70890d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ func CreateCollection(name string, coll *Collection) (*Collection, error) {
errMsg *C.char
)

path := C.CString(coll.path + "/" + name)
newColPath := coll.path + "/" + name
path := C.CString(newColPath)

defer C.free(unsafe.Pointer(path))

Expand All @@ -271,7 +272,7 @@ func CreateCollection(name string, coll *Collection) (*Collection, error) {
//newCol := coll.Cd(name)

return coll.Con().Collection(CollectionOptions{
Path: path,
Path: newColPath,
})

}
Expand Down

0 comments on commit 70890d0

Please sign in to comment.