From 3208b4d7d88a5a645b7ba644d806aa3926227466 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Fri, 11 Oct 1996 03:15:38 +0000 Subject: [PATCH] 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 --- src/backend/utils/adt/acl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;