forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc47a558
committed
Ensure ParseTzFile() closes the input file after failing.
We hadn't noticed this because (a) few people feed invalidtimezone abbreviation files to the server, and (b) in typicalscenarios guc.c would throw ereport(ERROR) and then transactionabort handling would silently clean up the leaked file reference.However, it was possible to observe file leakage warnings if onebreaks an already-active abbreviation file, because guc.c doesnot throw ERROR when loading supposedly-validated settings duringsession start or SIGHUP processing.Report and fix by Kyotaro Horiguchi (cosmetic adjustments by me)Discussion:https://postgr.es/m/20220530.173740.748502979257582392.horikyota.ntt@gmail.com1 parenta18b2a3 commitc47a558
1 file changed
+16
-7
lines changedLines changed: 16 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
364 | 364 |
| |
365 | 365 |
| |
366 | 366 |
| |
367 |
| - | |
| 367 | + | |
| 368 | + | |
368 | 369 |
| |
369 | 370 |
| |
370 | 371 |
| |
| |||
374 | 375 |
| |
375 | 376 |
| |
376 | 377 |
| |
377 |
| - | |
| 378 | + | |
| 379 | + | |
378 | 380 |
| |
379 | 381 |
| |
380 | 382 |
| |
| |||
397 | 399 |
| |
398 | 400 |
| |
399 | 401 |
| |
400 |
| - | |
| 402 | + | |
| 403 | + | |
401 | 404 |
| |
402 | 405 |
| |
403 | 406 |
| |
404 | 407 |
| |
405 |
| - | |
| 408 | + | |
406 | 409 |
| |
407 | 410 |
| |
408 | 411 |
| |
| |||
413 | 416 |
| |
414 | 417 |
| |
415 | 418 |
| |
416 |
| - | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
417 | 423 |
| |
418 |
| - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
419 | 428 |
| |
420 | 429 |
| |
421 |
| - | |
| 430 | + | |
422 | 431 |
| |
423 | 432 |
| |
424 | 433 |
| |
|
0 commit comments
Comments
(0)