pgsql: Fix incorrect accessing of pfree'd memory in Memoize

2024-03-10 Thread David Rowley
Fix incorrect accessing of pfree'd memory in Memoize For pass-by-reference types, the code added in 0b053e78b, which aimed to resolve a memory leak, was overly aggressive in resetting the per-tuple memory context which could result in pfree'd memory being accessed resulting in failing to find prev

pgsql: Fix incorrect accessing of pfree'd memory in Memoize

2024-03-10 Thread David Rowley
Fix incorrect accessing of pfree'd memory in Memoize For pass-by-reference types, the code added in 0b053e78b, which aimed to resolve a memory leak, was overly aggressive in resetting the per-tuple memory context which could result in pfree'd memory being accessed resulting in failing to find prev

pgsql: Fix incorrect accessing of pfree'd memory in Memoize

2024-03-10 Thread David Rowley
Fix incorrect accessing of pfree'd memory in Memoize For pass-by-reference types, the code added in 0b053e78b, which aimed to resolve a memory leak, was overly aggressive in resetting the per-tuple memory context which could result in pfree'd memory being accessed resulting in failing to find prev

pgsql: Fix incorrect accessing of pfree'd memory in Memoize

2024-03-10 Thread David Rowley
Fix incorrect accessing of pfree'd memory in Memoize For pass-by-reference types, the code added in 0b053e78b, which aimed to resolve a memory leak, was overly aggressive in resetting the per-tuple memory context which could result in pfree'd memory being accessed resulting in failing to find prev