We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentc90354b commit2a44306Copy full SHA for 2a44306
src/bin/pg_dump/pg_dumpall.c
@@ -6,7 +6,7 @@
6
* Portions Copyright (c) 1994, Regents of the University of California
7
*
8
9
- * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.15 2003/03/06 21:45:52 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.16 2003/03/14 22:45:49 tgl Exp $
10
11
*-------------------------------------------------------------------------
12
*/
@@ -327,7 +327,7 @@ dumpGroups(PGconn *conn)
327
328
val=strdup(PQgetvalue(res,i,2));
329
tok=strtok(val,",{}");
330
-do
+while (tok)
331
{
332
PGresult*res2;
333
PQExpBufferbuf2=createPQExpBuffer();
@@ -347,7 +347,7 @@ dumpGroups(PGconn *conn)
347
348
tok=strtok(NULL,"{},");
349
}
350
-while (tok);
+free(val);
351
352
printf("%s",buf->data);
353
destroyPQExpBuffer(buf);