Skip to content

Commit 69cd08d

Browse files
committed
Fix for memory leak from Denis Perchine
1 parent dbca646 commit 69cd08d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/backend/catalog/pg_proc.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.43 2000/05/28 17:55:54 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.44 2000/06/14 04:53:44 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -67,6 +67,7 @@ ProcedureCreate(char *procedureName,
6767
Oid toid;
6868
NameData procname;
6969
TupleDesc tupDesc;
70+
Oid retval;
7071

7172
/* ----------------
7273
* sanity checks
@@ -327,5 +328,7 @@ ProcedureCreate(char *procedureName,
327328
CatalogCloseIndices(Num_pg_proc_indices, idescs);
328329
}
329330
heap_close(rel, RowExclusiveLock);
330-
return tup->t_data->t_oid;
331+
retval = tup->t_data->t_oid;
332+
heap_freetuple(tup);
333+
return retval;
331334
}

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