Denis Perchine <dyp(at)perchine(dot)com> writes:
***************
*** 327,331 ****
--- 327,332 ----
CatalogCloseIndices(Num_pg_proc_indices, idescs);
}
heap_close(rel, RowExclusiveLock);
+ heap_freetuple(tup);
return tup->t_data->t_oid;
}
Uh, you didn't notice that the tuple you just freed is still in use
on the next line?
Memory leaks like this are not worth worrying about because the memory
will be reclaimed at end of transaction --- maybe even sooner after
I improve the memory-context handling.
regards, tom lane