Little memmory leak in RelationFlushRelation() in freeing
relation->rd_att (relation' TupleDesc).
This commit is contained in:
parent
b0dfe8e38e
commit
92ab5dc2b5
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.6 1996/11/27 08:16:01 bryanh Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.7 1997/05/20 11:41:38 vadim Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
@ -1220,11 +1220,11 @@ RelationFlushRelation(Relation *relationPtr,
|
|||
|
||||
FileInvalidate(RelationGetSystemPort(relation));
|
||||
|
||||
i = relation->rd_rel->relnatts - 1;
|
||||
p = &relation->rd_att->attrs[i];
|
||||
while ((i -= 1) >= 0) {
|
||||
pfree(*p--);
|
||||
}
|
||||
p = relation->rd_att->attrs;
|
||||
for (i = 0; i < relation->rd_rel->relnatts; i++, p++)
|
||||
pfree (*p);
|
||||
pfree (relation->rd_att->attrs);
|
||||
pfree (relation->rd_att);
|
||||
|
||||
#if 0
|
||||
if (relation->rd_rules) {
|
||||
|
|
Loading…
Reference in New Issue