re memleak: true, and of frame too
re av_malloc: I didn't notice anything weird, but you're right and it doesn't hurt

both fixed locally, I'll force push tomorrow (current comments will be lost if I do that now I think)