OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
978c8c6
)
This trivial patch fixes a small memory leak in pg_dump.
author
Bruce Momjian
<bruce@momjian.us>
Sun, 4 Aug 2002 05:03:29 +0000
(
05:03
+0000)
committer
Bruce Momjian
<bruce@momjian.us>
Sun, 4 Aug 2002 05:03:29 +0000
(
05:03
+0000)
Neil Conway
src/bin/pg_dump/pg_dump.c
patch
|
blob
|
history
diff --git
a/src/bin/pg_dump/pg_dump.c
b/src/bin/pg_dump/pg_dump.c
index
0a44b4c
..
63a8222
100644
(file)
--- 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.2
79 2002/08/02 18:15:08 tgl
Exp $
+ * $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.2
80 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