diff options
| -rw-r--r-- | src/bin/pg_dump/pg_dumpall.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_dump/pg_dumpall.c b/src/bin/pg_dump/pg_dumpall.c index 5102a980933..7f2bc0f3bab 100644 --- a/src/bin/pg_dump/pg_dumpall.c +++ b/src/bin/pg_dump/pg_dumpall.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * - * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.9.2.3 2003/03/06 21:45:57 tgl Exp $ + * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.9.2.4 2003/03/14 22:45:56 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -345,7 +345,7 @@ dumpGroups(PGconn *conn) val = strdup(PQgetvalue(res, i, 2)); tok = strtok(val, ",{}"); - do + while (tok) { PGresult *res2; PQExpBuffer buf2 = createPQExpBuffer(); @@ -365,7 +365,7 @@ dumpGroups(PGconn *conn) tok = strtok(NULL, "{},"); } - while (tok); + free(val); printf("%s", buf->data); destroyPQExpBuffer(buf); |
