forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0b053e7
committed
Fix memory leak in Memoize code
Ensure we switch to the per-tuple memory context to prevent any memoryleaks of detoasted Datums in MemoizeHash_hash() and MemoizeHash_equal().Reported-by: Orlov AleksejAuthor: Orlov Aleksej, David RowleyDiscussion:https://postgr.es/m/83281eed63c74e4f940317186372abfd%40cft.ruBackpatch-through: 14, where Memoize was added1 parent6889266 commit0b053e7
1 file changed
+22
-3
lines changedLines changed: 22 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
158 | 158 |
| |
159 | 159 |
| |
160 | 160 |
| |
| 161 | + | |
| 162 | + | |
161 | 163 |
| |
162 | 164 |
| |
163 | 165 |
| |
164 | 166 |
| |
| 167 | + | |
| 168 | + | |
165 | 169 |
| |
166 | 170 |
| |
167 | 171 |
| |
| |||
203 | 207 |
| |
204 | 208 |
| |
205 | 209 |
| |
| 210 | + | |
| 211 | + | |
206 | 212 |
| |
207 | 213 |
| |
208 | 214 |
| |
| |||
226 | 232 |
| |
227 | 233 |
| |
228 | 234 |
| |
| 235 | + | |
229 | 236 |
| |
| 237 | + | |
| 238 | + | |
| 239 | + | |
230 | 240 |
| |
231 | 241 |
| |
232 | 242 |
| |
| |||
236 | 246 |
| |
237 | 247 |
| |
238 | 248 |
| |
239 |
| - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
240 | 253 |
| |
241 | 254 |
| |
242 | 255 |
| |
| |||
246 | 259 |
| |
247 | 260 |
| |
248 | 261 |
| |
249 |
| - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
250 | 266 |
| |
251 |
| - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
252 | 271 |
| |
253 | 272 |
| |
254 | 273 |
| |
|
0 commit comments
Comments
(0)