There is a bug in aclitemout which causes a notice to be sent to the client
authorMarc G. Fournier <[email protected]>
Fri, 11 Oct 1996 03:15:38 +0000 (03:15 +0000)
committerMarc G. Fournier <[email protected]>
Fri, 11 Oct 1996 03:15:38 +0000 (03:15 +0000)
while the backend is trying to pfree a string not allocated with palloc.

Submitted by:  Massimo Dal Zotto <[email protected]>

src/backend/utils/adt/acl.c

index 289b4575c7b77a1e77c541c5896fbaf3e06e62b5..5b803ad3aff9b3943661a856c913b3d4abb8244d 100644 (file)
@@ -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;