avfilter/avf_showfreqs: fix check for failed allocation