Commit 5dad5143 authored by Zhao Zhili's avatar Zhao Zhili Committed by Pedro Arthur

avfilter/dnn_backend_native: fix invalid free

Signed-off-by: 's avatarPedro Arthur <bygrandao@gmail.com>
parent 0d7a75e8
......@@ -343,7 +343,7 @@ void ff_dnn_free_model_native(DNNModel **model)
}
av_freep(&network->layers[layer].params);
}
av_freep(network);
av_freep(&network);
av_freep(model);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment