in reply to perl XS - suspected memory leak (works)
av_push calls av_store, which takes ownership of a refcount, so no, no memory leak.
You can confirm this using use Devel::Peek; Dump($eaArray[0]);. It should have a REFCNT of 1.