pgsql: Fix memory leak in Memoize cache key evaluation

2023-03-19 Thread David Rowley
Fix memory leak in Memoize cache key evaluation When probing the Memoize cache to check if the current cache key values exist in the cache, we perform an evaluation of the expressions making up the cache key before probing the hash table for those values. This operation could leak memory as it is

pgsql: Fix memory leak in Memoize cache key evaluation

2023-03-19 Thread David Rowley
Fix memory leak in Memoize cache key evaluation When probing the Memoize cache to check if the current cache key values exist in the cache, we perform an evaluation of the expressions making up the cache key before probing the hash table for those values. This operation could leak memory as it is

pgsql: Fix memory leak in Memoize cache key evaluation

2023-03-19 Thread David Rowley
Fix memory leak in Memoize cache key evaluation When probing the Memoize cache to check if the current cache key values exist in the cache, we perform an evaluation of the expressions making up the cache key before probing the hash table for those values. This operation could leak memory as it is