avfilter/dnn_backend_native: fix memleak