"Jack Orenstein" <jack.orenstein@xxxxxxxxx> writes: > The C extension I'm writing, which uses the SPI, will be called > thousands or millions of times as part of a data conversion -- I do > have to worry about memory leaks. Not if it's called in a short-lived context, which should ordinarily be the case. regards, tom lane