forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5ea8cfe
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 parent1a321fe commit5ea8cfe
1 file changed
+4
-3
lines changedLines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
500 | 500 |
| |
501 | 501 |
| |
502 | 502 |
| |
| 503 | + | |
503 | 504 |
| |
504 | 505 |
| |
505 | 506 |
| |
| |||
570 | 571 |
| |
571 | 572 |
| |
572 | 573 |
| |
573 |
| - | |
574 |
| - | |
| 574 | + | |
| 575 | + | |
575 | 576 |
| |
576 | 577 |
| |
577 | 578 |
| |
| |||
678 | 679 |
| |
679 | 680 |
| |
680 | 681 |
| |
681 |
| - | |
| 682 | + | |
682 | 683 |
| |
683 | 684 |
| |
684 | 685 |
| |
|
0 commit comments
Comments
(0)