Skip to content

Commit a933bce

Browse files
committed
compatible_oper needs to do ReleaseSysCache in one path to avoid
complaints about 'Cache reference leak'. Per report from Don Baccus.
1 parent e355992 commit a933bce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/parser/parse_oper.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.48 2001/03/22 03:59:41 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/parser/parse_oper.c,v 1.49 2001/04/23 04:32:30 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -686,6 +686,9 @@ compatible_oper(char *op, Oid arg1, Oid arg2, bool noError)
686686
IS_BINARY_COMPATIBLE(opform->oprright, arg2)))
687687
return optup;
688688

689+
/* nope... */
690+
ReleaseSysCache(optup);
691+
689692
if (!noError)
690693
op_error(op, arg1, arg2);
691694

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy