Commit ce5bb923 authored by Bruce Momjian's avatar Bruce Momjian

This trivial patch fixes a small memory leak in pg_dump.

Neil Conway
parent 978c8c6d
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
* *
* *
* IDENTIFICATION * 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) ...@@ -5378,6 +5378,8 @@ dumpIndexes(Archive *fout, TableInfo *tblinfo, int numTables)
q->data, "", q->data, "",
NULL, NULL, NULL); NULL, NULL, NULL);
for (k = 0; k < indnkeys; k++)
free(indkeys[k]);
free(indkeys); free(indkeys);
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment