forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd37e0d0
committed
Release PQconninfoOptions array in GetDbnameFromConnectionOptions().
It wasn't getting freed in one code path, which Coverity identified asa resource leak. It's probably of little consequence, but re-orderingthe code into the correct sequence is no more work than dismissing thecomplaint. Minor oversight in commita145f42.While here, improve the unreasonably clunky coding ofFindDbnameInConnParams: use of an output parameter is unnecessaryand prone to uninitialized-variable problems.1 parent225e1dd commitd37e0d0
1 file changed
+14
-15
lines changedLines changed: 14 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
37 |
| - | |
| 37 | + | |
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
| |||
272 | 272 |
| |
273 | 273 |
| |
274 | 274 |
| |
275 |
| - | |
| 275 | + | |
| 276 | + | |
276 | 277 |
| |
277 |
| - | |
278 |
| - | |
| 278 | + | |
| 279 | + | |
279 | 280 |
| |
280 | 281 |
| |
281 | 282 |
| |
282 |
| - | |
283 |
| - | |
284 | 283 |
| |
285 | 284 |
| |
286 |
| - | |
| 285 | + | |
287 | 286 |
| |
288 |
| - | |
| 287 | + | |
289 | 288 |
| |
| 289 | + | |
290 | 290 |
| |
291 | 291 |
| |
292 | 292 |
| |
| |||
304 | 304 |
| |
305 | 305 |
| |
306 | 306 |
| |
307 |
| - | |
| 307 | + | |
308 | 308 |
| |
309 |
| - | |
| 309 | + | |
310 | 310 |
| |
311 | 311 |
| |
312 | 312 |
| |
| |||
315 | 315 |
| |
316 | 316 |
| |
317 | 317 |
| |
318 |
| - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
319 | 321 |
| |
320 |
| - | |
321 |
| - | |
322 | 322 |
| |
323 |
| - | |
324 | 323 |
| |
325 | 324 |
| |
326 | 325 |
| |
| |||
331 | 330 |
| |
332 | 331 |
| |
333 | 332 |
| |
334 |
| - | |
| 333 | + | |
335 | 334 |
| |
336 | 335 |
| |
337 | 336 |
| |
|
0 commit comments
Comments
(0)