Commit c6839b84 authored by lysu's avatar lysu Committed by Jack Yu
Browse files

server: fix memory leak after cursor running fetch finished (#13623) (#13629) (#13673)

parent c1bb143e
No related merge requests found
Showing with 4 additions and 1 deletion
+4 -1
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment