avcodec/ac3enc: Fix memleak