mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03: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
342fae3dc5
commit
803d61a353
@ -10,7 +10,7 @@
|
|||||||
* didn't really belong there.
|
* didn't really belong there.
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.47 2002/10/03 17:09:42 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.47.2.1 2006/04/19 16:16:08 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -729,8 +729,10 @@ PQprintTuples(const PGresult *res,
|
|||||||
fprintf(fout, "|\n%s\n", tborder);
|
fprintf(fout, "|\n%s\n", tborder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
if (tborder)
|
||||||
|
free(tborder);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* simply send out max-length number of filler characters to fp */
|
/* simply send out max-length number of filler characters to fp */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user