Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6c08905

Browse files
committed
Remove overenthusiastic free'ing of comment dependencies; could lead to
core dump in pg_dump when dumping views having comments. See bug #855.
1 parent1868b0b commit6c08905

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

‎src/bin/pg_dump/pg_dump.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*by PostgreSQL
1313
*
1414
* IDENTIFICATION
15-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.312 2002/12/21 22:45:09 tgl Exp $
15+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.313 2002/12/27 17:10:45 tgl Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -5496,12 +5496,7 @@ dumpOneTable(Archive *fout, TableInfo *tbinfo, TableInfo *g_tblinfo)
54965496
/* Dump Table Comments */
54975497
dumpTableComment(fout,tbinfo,reltypename,commentDeps);
54985498

5499-
if (commentDeps)
5500-
{
5501-
for (j=0; (*commentDeps)[j]!=NULL;j++)
5502-
free((void*) (*commentDeps)[j]);
5503-
free(commentDeps);
5504-
}
5499+
/* commentDeps now belongs to the archive entry ... don't free it! */
55055500

55065501
destroyPQExpBuffer(query);
55075502
destroyPQExpBuffer(q);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp