Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
jiawen li
tidb
Commits
c6839b84
Commit
c6839b84
authored
5 years ago
by
lysu
Committed by
Jack Yu
5 years ago
Browse files
Options
Download
Email Patches
Plain Diff
server: fix memory leak after cursor running fetch finished (#13623) (#13629) (#13673)
parent
c1bb143e
gd305
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/driver_tidb.go
+4
-1
server/driver_tidb.go
with
4 additions
and
1 deletion
+4
-1
server/driver_tidb.go
+
4
-
1
View file @
c6839b84
...
...
@@ -380,7 +380,10 @@ func (trs *tidbResultSet) Close() error {
if
!
atomic
.
CompareAndSwapInt32
(
&
trs
.
closed
,
0
,
1
)
{
return
nil
}
return
trs
.
recordSet
.
Close
()
err
:=
trs
.
recordSet
.
Close
()
trs
.
recordSet
=
nil
trs
.
rows
=
nil
return
err
}
// OnFetchReturned implements fetchNotifier#OnFetchReturned
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help