projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23c1f24
)
Fix ancient memory leak in PQprintTuples(); our code no longer uses this
author
Tom Lane
<
[email protected]
>
Wed, 19 Apr 2006 16:16:08 +0000
(16:16 +0000)
committer
Tom Lane
<
[email protected]
>
Wed, 19 Apr 2006 16:16:08 +0000
(16:16 +0000)
routine, but perhaps some applications do. Found by Martijn van Oosterhout
using Coverity.
src/interfaces/libpq/fe-print.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/libpq/fe-print.c
b/src/interfaces/libpq/fe-print.c
index 48659196cfdd5abce01ae09e9d6c53cbc571bb94..1241a7e5685fe9672eeecba364e76e3b3a631050 100644
(file)
--- a/
src/interfaces/libpq/fe-print.c
+++ b/
src/interfaces/libpq/fe-print.c
@@
-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 */