Does the simple XDELETEVEC patch need any more work? I think it just fixes a leak for the JIT case where driver::finalize is called. On Thu, 7 Dec 2023 at 16:04, Jakub Jelinek wrote: > On Thu, Dec 07, 2023 at 04:01:11PM +0000, Costas Argyris wrote: > > Thanks for all the explanations. > > > > In that case I restrict this patch to just freeing the buffer from > > within driver::finalize only (I think it should be XDELETEVEC > > instead of XDELETE, no?). > > Both macros are exactly the same, but XDELETEVEC is probably better > counterpart to XNEWVEC. > > Jakub > >