I have a small patch for 6.5.
authorBruce Momjian
Sat, 19 Jun 1999 05:05:52 +0000 (05:05 +0000)
committerBruce Momjian
Sat, 19 Jun 1999 05:05:52 +0000 (05:05 +0000)
 aclchk.c: heap_close() is not called after calling heap_openr().

Atsushi Ogawa

src/backend/catalog/aclchk.c

index db1d85abc1fe5fe91081fadfb0c287e3b6ab6d15..a5f9bf9728ae654cb976d694c9465aa9adda7588 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.21 1999/05/10 00:44:53 momjian Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.22 1999/06/19 05:05:52 momjian Exp $
  *
  * NOTES
  *   See acl.h.
@@ -455,6 +455,7 @@ pg_aclcheck(char *relname, char *usename, AclMode mode)
                                      RelationGetDescr(relation),
                                      (bool *) NULL);
        acl = aclownerdefault(relname, (AclId) ownerId);
+       heap_close(relation);
    }
 #else
    {                           /* This is why the syscache is great... */