- Notifications
You must be signed in to change notification settings - Fork5k
Commit0bd5617
committed
Always pfree strings returned by GetDatabasePath
Several places didn't do it, and in many cases it didn't matter becauseit would be a small allocation in a short-lived context; but otherplaces may accumulate a few (for example, in CreateDatabaseUsingFileCopy,one per tablespace). In most databases this is highly unlikely to bevery serious either, but it seems better to make the code consistent incase there's future copy-and-paste.The only case of actual concern seems to be the aforementioned routine,which is new with commit9c08aea, so there's no need to backpatch.As pointed out by Coverity.1 parentf819020 commit0bd5617
2 files changed
+14
-0
lines changedLines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
217 | 217 |
| |
218 | 218 |
| |
219 | 219 |
| |
| 220 | + | |
| 221 | + | |
220 | 222 |
| |
221 | 223 |
| |
222 | 224 |
| |
| |||
628 | 630 |
| |
629 | 631 |
| |
630 | 632 |
| |
| 633 | + | |
| 634 | + | |
631 | 635 |
| |
632 | 636 |
| |
633 | 637 |
| |
| |||
2128 | 2132 |
| |
2129 | 2133 |
| |
2130 | 2134 |
| |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
2131 | 2138 |
| |
2132 | 2139 |
| |
2133 | 2140 |
| |
| |||
2141 | 2148 |
| |
2142 | 2149 |
| |
2143 | 2150 |
| |
| 2151 | + | |
| 2152 | + | |
2144 | 2153 |
| |
2145 | 2154 |
| |
2146 | 2155 |
| |
| |||
3051 | 3060 |
| |
3052 | 3061 |
| |
3053 | 3062 |
| |
| 3063 | + | |
| 3064 | + | |
| 3065 | + | |
3054 | 3066 |
| |
3055 | 3067 |
| |
3056 | 3068 |
| |
| |||
3063 | 3075 |
| |
3064 | 3076 |
| |
3065 | 3077 |
| |
| 3078 | + | |
3066 | 3079 |
| |
3067 | 3080 |
| |
3068 | 3081 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1057 | 1057 |
| |
1058 | 1058 |
| |
1059 | 1059 |
| |
| 1060 | + | |
1060 | 1061 |
| |
1061 | 1062 |
| |
1062 | 1063 |
| |
|
0 commit comments
Comments
(0)