Commit ec5a010
committed
Fix pfree issue in presorted DISTINCT aggregate code
The logic in this area was recently changed in 7da5159, however, in that
commit, I neglected to consider that the conditions in which we should
pfree the old Datum needed to be updated after that change. This could
result in trying to pfree a NULL value, as was demonstrated by Alexander
Lakhin.
Reported-by: Alexander Lakhin
Discussion: https://postgr.es/m/4103db46-d888-6d1d-e88d-87c21ed99472@gmail.com1 parent bd94488 commit ec5a010
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4254 | 4254 | | |
4255 | 4255 | | |
4256 | 4256 | | |
4257 | | - | |
| 4257 | + | |
| 4258 | + | |
4258 | 4259 | | |
4259 | 4260 | | |
4260 | 4261 | | |
| |||
0 commit comments