- Notifications
You must be signed in to change notification settings - Fork5
Commita71daab
committed
Change PQconndefaults() to return a malloc'd array, instead of a static
array. This allows processing of conninfo strings to be made thread-safe,at the cost of a small memory leak in applications that usePQconndefaults() and are not updated to free the returned array viathe new PQconninfoFree() function. But PQconndefaults() is probably notused very much, so this seems like a good compromise.1 parent773e84f commita71daab
File tree
8 files changed
+234
-137
lines changed- src/interfaces
- libpgtcl
- libpq
- perl5
8 files changed
+234
-137
lines changedLines changed: 20 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
237 | 237 |
| |
238 | 238 |
| |
239 | 239 |
| |
| 240 | + | |
240 | 241 |
| |
241 | 242 |
| |
242 | 243 |
| |
243 | 244 |
| |
244 |
| - | |
245 |
| - | |
| 245 | + | |
246 | 246 |
| |
247 |
| - | |
| 247 | + | |
248 | 248 |
| |
249 |
| - | |
250 |
| - | |
251 |
| - | |
252 |
| - | |
253 |
| - | |
254 |
| - | |
255 |
| - | |
256 |
| - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
257 | 265 |
| |
258 |
| - | |
259 | 266 |
| |
260 | 267 |
| |
261 | 268 |
| |
|
Lines changed: 11 additions & 4 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 |
| |
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 |
| - | |
| 78 | + | |
79 | 79 |
| |
80 | 80 |
| |
81 | 81 |
| |
| |||
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
97 |
| - | |
| 97 | + | |
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
| |||
549 | 549 |
| |
550 | 550 |
| |
551 | 551 |
| |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
552 | 558 |
| |
| 559 | + | |
553 | 560 |
| |
554 | 561 |
| |
555 | 562 |
| |
| |||
558 | 565 |
| |
559 | 566 |
| |
560 | 567 |
| |
561 |
| - | |
| 568 | + | |
562 | 569 |
| |
563 | 570 |
| |
564 | 571 |
| |
|
0 commit comments
Comments
(0)