Skip to content

Commit

Permalink
Convert *cstring to unsafe.Pointer before passing to C.free
Browse files Browse the repository at this point in the history
  • Loading branch information
michalderkacz committed Feb 22, 2016
1 parent 8cc7057 commit 9b5311f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rrd_c.go
Expand Up @@ -29,7 +29,7 @@ func newCstring(s string) *cstring {

func (cs *cstring) Free() {
if cs != nil {
C.free(cs)
C.free(unsafe.Pointer(cs))
}
}

Expand Down

0 comments on commit 9b5311f

Please sign in to comment.