mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
I have a small patch for 6.5.
aclchk.c: heap_close() is not called after calling heap_openr(). Atsushi Ogawa
This commit is contained in:
parent
8d37132ec9
commit
db4a6a2618
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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
|
* NOTES
|
||||||
* See acl.h.
|
* See acl.h.
|
||||||
@ -455,6 +455,7 @@ pg_aclcheck(char *relname, char *usename, AclMode mode)
|
|||||||
RelationGetDescr(relation),
|
RelationGetDescr(relation),
|
||||||
(bool *) NULL);
|
(bool *) NULL);
|
||||||
acl = aclownerdefault(relname, (AclId) ownerId);
|
acl = aclownerdefault(relname, (AclId) ownerId);
|
||||||
|
heap_close(relation);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
{ /* This is why the syscache is great... */
|
{ /* This is why the syscache is great... */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user