File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/fcache.c,v 1.30 2000/04/12 17:15:53 momjian Exp $
11
+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/Attic/fcache.c,v 1.30.2.1 2000/06/06 17:45:05 tgl Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
15
15
#include "postgres.h"
16
16
17
+ #include "access/heapam.h"
17
18
#include "catalog/pg_language.h"
18
19
#include "catalog/pg_proc.h"
19
20
#include "catalog/pg_type.h"
@@ -89,9 +90,9 @@ init_fcache(Oid foid,
89
90
if (!use_syscache )
90
91
elog (ERROR , "what the ????, init the fcache without the catalogs?" );
91
92
92
- procedureTuple = SearchSysCacheTuple (PROCOID ,
93
- ObjectIdGetDatum (foid ),
94
- 0 , 0 , 0 );
93
+ procedureTuple = SearchSysCacheTupleCopy (PROCOID ,
94
+ ObjectIdGetDatum (foid ),
95
+ 0 , 0 , 0 );
95
96
96
97
if (!HeapTupleIsValid (procedureTuple ))
97
98
elog (ERROR , "init_fcache: Cache lookup failed for procedure %u" ,
@@ -259,6 +260,8 @@ init_fcache(Oid foid,
259
260
else
260
261
retval -> func .fn_addr = (func_ptr ) NULL ;
261
262
263
+ heap_freetuple (procedureTuple );
264
+
262
265
return retval ;
263
266
}
264
267
You can’t perform that action at this time.
0 commit comments