mirror of
https://github.com/postgres/postgres.git
synced 2026-04-14 13:37:39 -04:00
Fix ancient memory leak in PQprintTuples(); our code no longer uses this
routine, but perhaps some applications do. Found by Martijn van Oosterhout using Coverity.
This commit is contained in:
parent
f8511d4cc9
commit
8f7fce2fd6
1 changed files with 4 additions and 2 deletions
|
|
@ -10,7 +10,7 @@
|
|||
* didn't really belong there.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-print.c,v 1.58 2004/12/31 22:03:50 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-print.c,v 1.58.4.1 2006/04/19 16:15:41 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
|
@ -745,8 +745,10 @@ PQprintTuples(const PGresult *res,
|
|||
fprintf(fout, "|\n%s\n", tborder);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (tborder)
|
||||
free(tborder);
|
||||
}
|
||||
|
||||
|
||||
/* simply send out max-length number of filler characters to fp */
|
||||
|
|
|
|||
Loading…
Reference in a new issue