mirror of
https://github.com/postgres/postgres.git
synced 2026-06-13 18:50:17 -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
e1b40c521e
commit
8a3789cdfa
1 changed files with 4 additions and 2 deletions
|
|
@ -10,7 +10,7 @@
|
|||
* didn't really belong there.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.48 2003/08/04 02:40:20 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.48.4.1 2006/04/19 16:15:52 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
|
@ -729,8 +729,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