Commit ad450a6
committed
Make remapper->typmodmap alloc in remapper->mycontext.
remapper->typmodmap was alloc in MotionLayerMemCtxt, which will reset
ExecutorEnd(). When transcation abort, DestroyTupleRemapper will try free
pfree(remapper->typmodmap), this make free a wild pointer,core dump occurred.1 parent 563b7ca commit ad450a6
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
227 | 228 | | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| 232 | + | |
231 | 233 | | |
232 | 234 | | |
233 | 235 | | |
| |||
0 commit comments