diff options
author | Marc G. Fournier <scrappy@hub.org> | 1996-10-11 03:15:38 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1996-10-11 03:15:38 +0000 |
commit | 3208b4d7d88a5a645b7ba644d806aa3926227466 (patch) | |
tree | 02a9eb1a472a4825fb1d5ff7e293cd7c0d6ce70a | |
parent | ba30435f348610de0e8837d5e829a3f991876adc (diff) | |
download | postgresql-3208b4d7d88a5a645b7ba644d806aa3926227466.tar.gz |
There is a bug in aclitemout which causes a notice to be sent to the client
while the backend is trying to pfree a string not allocated with palloc.
Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
-rw-r--r-- | src/backend/utils/adt/acl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/utils/adt/acl.c b/src/backend/utils/adt/acl.c index 289b4575c7..5b803ad3af 100644 --- a/src/backend/utils/adt/acl.c +++ b/src/backend/utils/adt/acl.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/acl.c,v 1.1.1.1 1996/07/09 06:22:02 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/acl.c,v 1.1.1.1.2.1 1996/10/11 03:15:38 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -258,7 +258,11 @@ aclitemout(AclItem *aip) (void) strcat(p, "group "); tmpname = get_groname(aip->ai_id); (void) strncat(p, tmpname, NAMEDATALEN); +#ifdef ACL_PATCH + /* tmpname is a pointer into tuple data, don't pfree it */ +#else pfree(tmpname); +#endif break; case ACL_IDTYPE_WORLD: break; |