Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit89ac643

Browse files
author
Hiroshi Inoue
committed
Fix some leaks(was my fault).
1 parent6acdebb commit89ac643

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/backend/catalog/index.c

Lines changed: 4 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/index.c,v 1.134 2001/01/1804:01:42 inoue Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.135 2001/01/1807:29:04 inoue Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -1557,6 +1557,7 @@ setNewRelfilenode(Relation relation)
15571557
memcpy((char*)&workrel,relation,sizeof(RelationData));
15581558
workrel.rd_node.relNode=newrelfilenode;
15591559
heap_storage_create(&workrel);
1560+
smgrclose(DEFAULT_SMGR,&workrel);
15601561
/* update pg_class tuple with new relfilenode in place */
15611562
if (in_place_update)
15621563
{
@@ -1578,9 +1579,10 @@ setNewRelfilenode(Relation relation)
15781579
idescs);
15791580
CatalogIndexInsert(idescs,Num_pg_class_indices,pg_class,classTuple);
15801581
CatalogCloseIndices(Num_pg_class_indices,idescs);
1581-
heap_freetuple(classTuple);
15821582
}
15831583
heap_close(pg_class,NoLock);
1584+
if (!in_place_update)
1585+
heap_freetuple(classTuple);
15841586
/* Make sure the relfilenode change */
15851587
CommandCounterIncrement();
15861588
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp