projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdafb40
)
Fix double-memory free in libpgeasy; problem introduced yesterday.
author
Bruce Momjian
<bruce@momjian.us>
Fri, 14 Dec 2001 00:52:53 +0000
(
00:52
+0000)
committer
Bruce Momjian
<bruce@momjian.us>
Fri, 14 Dec 2001 00:52:53 +0000
(
00:52
+0000)
src/interfaces/libpgeasy/libpgeasy.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/libpgeasy/libpgeasy.c
b/src/interfaces/libpgeasy/libpgeasy.c
index 2ccae266a4bf8f28f4aba6ac8727a621a76a9bf8..c9bbdf39c8d8ae6a173f84daa7a4556b4316d93f 100644
(file)
--- a/
src/interfaces/libpgeasy/libpgeasy.c
+++ b/
src/interfaces/libpgeasy/libpgeasy.c
@@
-65,7
+65,10
@@
disconnectdb()
if (res != NULL &&
in_result_block == FALSE &&
was_get_unset_result == FALSE)
+ {
PQclear(res);
+ res = NULL;
+ }
PQfinish(conn);
}