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

Commit8f52496

Browse files
committed
Fix ancient memory leak in PQprintTuples(); our code no longer uses this
routine, but perhaps some applications do. Found by Martijn van Oosterhoutusing Coverity.
1 parent3224f2e commit8f52496

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/interfaces/libpq/fe-print.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* didn't really belong there.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-print.c,v 1.67 2006/03/0515:59:09 momjian Exp $
13+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-print.c,v 1.68 2006/04/19 16:15:29 tgl Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -751,8 +751,10 @@ PQprintTuples(const PGresult *res,
751751
fprintf(fout,"|\n%s\n",tborder);
752752
}
753753
}
754-
}
755754

755+
if (tborder)
756+
free(tborder);
757+
}
756758

757759

758760
/* simply send out max-length number of filler characters to fp */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp