Commit af09d36
committed
feat: check CurrentMemoryContext is not Bump
Many operations require memory allocations and accordingly it's freeing.
But Bump context do not have header and so can not perform some
operations including 'pfree'. So we should check and deny any allocation
sensetive operations - not only 'palloc' explicitly, but also any
functions that may use memory allocations, i.e. various 'out' functions.1 parent 474a9ae commit af09d36
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1035 | 1035 | | |
1036 | 1036 | | |
1037 | 1037 | | |
1038 | | - | |
1039 | 1038 | | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
1040 | 1049 | | |
1041 | 1050 | | |
1042 | 1051 | | |
| |||
5870 | 5879 | | |
5871 | 5880 | | |
5872 | 5881 | | |
| 5882 | + | |
| 5883 | + | |
5873 | 5884 | | |
5874 | 5885 | | |
5875 | 5886 | | |
| |||
0 commit comments