forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit67cda1e
Avoid memory leak in rmtree() when path cannot be opened
An allocation done for the directory names to recurse into for theirdeletion was done before OPENDIR(), so, assuming that a failure happens,this could leak a bit of memory.Author: Ranier VilelaReviewed-by: Daniel GustafssonDiscussion:https://postgr.es/m/CAEudQAoN3-2ZKBALThnEk_q2hu8En5A0WG9O+5siJTQKVZzoWQ@mail.gmail.com1 parentf22e039 commit67cda1e
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
| 58 | + | |
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
| |||
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
| 67 | + | |
| 68 | + | |
67 | 69 |
| |
68 | 70 |
| |
69 | 71 |
| |
|
0 commit comments
Comments
(0)