libvpxenc: fix memleak on error path