Skip to content

Commit

Permalink
Merge pull request #16 from calyptia/fix-cfl
Browse files Browse the repository at this point in the history
Fix for CFL
  • Loading branch information
niedbalski authored Nov 16, 2022
2 parents bb17895 + ed23d9d commit 8ab981f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmetrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package cmetrics

/*
#cgo LDFLAGS: -L/usr/local/lib -lcmetrics -lmpack -lxxhash
#cgo LDFLAGS: -L/usr/local/lib -lcmetrics -lcfl -lmpack -lxxhash
#cgo CFLAGS: -I/usr/local/include/ -w
#include <cmetrics/cmetrics.h>
Expand Down Expand Up @@ -122,7 +122,7 @@ func (ctx *Context) EncodeText() (string, error) {
return "", errors.New("error encoding to text format")
}
var text string = C.GoString(buffer)
C.cmt_sds_destroy(buffer)
C.cmt_encode_text_destroy(buffer)
return text, nil
}

Expand Down
4 changes: 2 additions & 2 deletions cmetrics_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package cmetrics

/*
#cgo LDFLAGS: -L/usr/local/lib -lcmetrics -lmpack -lxxhash
#cgo LDFLAGS: -L/usr/local/lib -lcmetrics -lcfl -lmpack -lxxhash
#cgo CFLAGS: -I/usr/local/include/ -w
#include <cmetrics/cmetrics.h>
Expand Down Expand Up @@ -122,7 +122,7 @@ func (ctx *Context) EncodeText() (string, error) {
return "", errors.New("error encoding to text format")
}
var text string = C.GoString(buffer)
C.cmt_sds_destroy(buffer)
C.cmt_encode_text_destroy(buffer)
return text, nil
}

Expand Down

0 comments on commit 8ab981f

Please sign in to comment.