Skip to content

Commit 3e2bc3c

Browse files
committed
fix: remove error event listener before releasing connection back to pool
Signed-off-by: vinod-hansda <[email protected]>
1 parent f547178 commit 3e2bc3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/postgresql.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ PostgreSQL.prototype.executeSQL = function(sql, params, options, callback) {
165165
// Release the connection back to the pool.
166166
if (releaseCb) {
167167
releaseCb(err);
168-
// Remove error event listeners to avoid possible memory leak
168+
// Remove error event listener to avoid possible memory leak
169169
connection.removeAllListeners('error');
170170
}
171171
let result = null;

0 commit comments

Comments
 (0)