Commit 0bd5617
committed
Always pfree strings returned by GetDatabasePath
Several places didn't do it, and in many cases it didn't matter because
it would be a small allocation in a short-lived context; but other
places may accumulate a few (for example, in CreateDatabaseUsingFileCopy,
one per tablespace). In most databases this is highly unlikely to be
very serious either, but it seems better to make the code consistent in
case there's future copy-and-paste.
The only case of actual concern seems to be the aforementioned routine,
which is new with commit 9c08aea, so there's no need to backpatch.
As pointed out by Coverity.1 parent f819020 commit 0bd5617
2 files changed
+14
-0
lines changed| 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 | | |
| |||
| 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