-
Notifications
You must be signed in to change notification settings - Fork 7
cgosqlite: fix memory leak in ExpandedSQL #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Randomly jumping in on this. Isn't this true for all strings SQLite returns? Should we fix |
|
No, this is a special case: Lines 4565 to 4570 in 77567f4
|
| } | ||
| } | ||
|
|
||
| func TestExpandedSQL(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's too tedious to make this look for leaks, eh?
(probably not visible to https://pkg.go.dev/runtime#ReadMemStats ...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, just too fiddly for me on a Sunday morning. I would like to try it tomorrow though.
4cc49d5 to
80904c6
Compare
80904c6 to
1352947
Compare
Updates tailscale/corp#34015