forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8b63f89
committed
Fix more memory leaks in failure path in buildACLCommands.
We already had one go at this issue in commitd73b7f9, but wefailed to notice that buildACLCommands also leaked several PQExpBuffersalong with a simply malloc'd string. This time let's try to make thefix a bit more future-proof by eliminating the separate exit path.It's still not exactly critical because pg_dump will curl up and die onfailure; but since the amount of the potential leak is now several KB,it seems worth back-patching as far as 9.2 where the previous fix landed.Per Coverity, which evidently is smarter than clang's static analyzer.1 parent9be9ac4 commit8b63f89
1 file changed
+4
-3
lines changedLines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
531 | 531 |
| |
532 | 532 |
| |
533 | 533 |
| |
| 534 | + | |
534 | 535 |
| |
535 | 536 |
| |
536 | 537 |
| |
| |||
601 | 602 |
| |
602 | 603 |
| |
603 | 604 |
| |
604 |
| - | |
605 |
| - | |
| 605 | + | |
| 606 | + | |
606 | 607 |
| |
607 | 608 |
| |
608 | 609 |
| |
| |||
709 | 710 |
| |
710 | 711 |
| |
711 | 712 |
| |
712 |
| - | |
| 713 | + | |
713 | 714 |
| |
714 | 715 |
| |
715 | 716 |
| |
|
0 commit comments
Comments
(0)