Skip to content
Snippets Groups Projects
Commit 8f52496a authored by Tom Lane's avatar Tom Lane
Browse files

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.
parent 3224f2ee
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@
* didn't really belong there.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-print.c,v 1.67 2006/03/05 15:59:09 momjian Exp $
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-print.c,v 1.68 2006/04/19 16:15:29 tgl Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -751,8 +751,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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment