mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
fix(pg-cursor): EventEmitter memory leak (#2501)
This commit is contained in:
parent
d99b5741f8
commit
8faf8a0937
@ -28,6 +28,9 @@ util.inherits(Cursor, EventEmitter)
|
||||
Cursor.prototype._ifNoData = function () {
|
||||
this.state = 'idle'
|
||||
this._shiftQueue()
|
||||
if (this.connection) {
|
||||
this.connection.removeListener('rowDescription', this._rowDescription)
|
||||
}
|
||||
}
|
||||
|
||||
Cursor.prototype._rowDescription = function () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user