From: Bruce Momjian Date: Sun, 4 Aug 2002 05:03:29 +0000 (+0000) Subject: This trivial patch fixes a small memory leak in pg_dump. X-Git-Tag: REL7_3~1038 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce5bb92346af077024be15ade4bc061c3c8e19a3;p=postgresql This trivial patch fixes a small memory leak in pg_dump. Neil Conway --- diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 0a44b4cbbc..63a82229fc 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -22,7 +22,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.279 2002/08/02 18:15:08 tgl Exp $ + * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.280 2002/08/04 05:03:29 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -5378,6 +5378,8 @@ dumpIndexes(Archive *fout, TableInfo *tblinfo, int numTables) q->data, "", NULL, NULL, NULL); + for (k = 0; k < indnkeys; k++) + free(indkeys[k]); free(indkeys); } else