forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit88dc6fa
committed
foreach() and list_delete() don't mix.
Fix crash when releasing duplicate entries in the encoding conversion cachelist, caused by releasing the current entry of the list being chased byforeach(). We have a standard idiom for handling such cases, but thisloop wasn't using it.This got broken in my recent rewrite of GUC assign hooks. Not sure howI missed this when testing the modified code, but I did. Per report fromPeter.1 parentd2f60a3 commit88dc6fa
1 file changed
+10
-2
lines changedLines changed: 10 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
189 | 189 |
| |
190 | 190 |
| |
191 | 191 |
| |
| 192 | + | |
| 193 | + | |
192 | 194 |
| |
193 | 195 |
| |
194 | 196 |
| |
| |||
222 | 224 |
| |
223 | 225 |
| |
224 | 226 |
| |
225 |
| - | |
| 227 | + | |
| 228 | + | |
226 | 229 |
| |
227 | 230 |
| |
228 | 231 |
| |
| 232 | + | |
| 233 | + | |
229 | 234 |
| |
230 | 235 |
| |
231 | 236 |
| |
| |||
240 | 245 |
| |
241 | 246 |
| |
242 | 247 |
| |
243 |
| - | |
| 248 | + | |
244 | 249 |
| |
| 250 | + | |
245 | 251 |
| |
246 | 252 |
| |
| 253 | + | |
| 254 | + | |
247 | 255 |
| |
248 | 256 |
| |
249 | 257 |
| |
|
0 commit comments
Comments
(0)