Skip to content

Commit

Permalink
Fix memory leak in GetProfilingInfo.
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Sep 29, 2021
1 parent dc784c8 commit 6e6c7f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ func (s *Scanner) GetProfilingInfo(n int) (result []ProfilingInfo) {
&Rule{p.rule, s.rules},
uint64(p.cost)})
}
C.yr_free(unsafe.Pointer(pi))
return result
}

Expand Down

0 comments on commit 6e6c7f6

Please sign in to comment.