avfilter/af_join: fix possible memory leaks