forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite3b4400
committed
Here is a bug and patch to fix it. I have tested this bug and fix on
FreeBSD/Intel and DecUX/Alpha machines. The bug appears in postgresql6.5.3 and 7.0.2. Can someone please review it and apply it to thesource tree?Sometimes when the postgres connection dies it is necessary toattempt to reconnect. Calling the pgconnection::Connect method in aderived class leaks memory because it does not clear the currentconnection (if there is one). These patches ensures that any openconnections are closed before attempting to open a new one.-Michael Richards1 parent1ee0d4a commite3b4400
2 files changed
+20
-3
lines changedLines changed: 18 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 |
| - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
50 | 59 |
| |
| 60 | + | |
51 | 61 |
| |
| 62 | + | |
| 63 | + | |
52 | 64 |
| |
53 | 65 |
| |
54 | 66 |
| |
| 67 | + | |
55 | 68 |
| |
56 | 69 |
| |
57 | 70 |
| |
58 | 71 |
| |
| 72 | + | |
| 73 | + | |
| 74 | + | |
59 | 75 |
| |
60 | 76 |
| |
61 | 77 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
81 | 81 |
| |
82 | 82 |
| |
83 | 83 |
| |
| 84 | + | |
84 | 85 |
| |
85 | 86 |
| |
86 | 87 |
| |
|
0 commit comments
Comments
(0)