Commit 00d1f4d5 authored by Janne Grunau's avatar Janne Grunau

cdf: fix memleak in dav1d_cdf_thread_unref

Observed with
clusterfuzz-testcase-minimized-dav1d_fuzzer_mt-5700224002031616. Credits
to oss-fuzz.
parent 0f7a97ba
......@@ -4200,9 +4200,9 @@ void dav1d_cdf_thread_ref(CdfThreadContext *const dst,
}
void dav1d_cdf_thread_unref(CdfThreadContext *const cdf) {
memset(cdf, 0, sizeof(*cdf));
if (cdf->ref)
dav1d_ref_dec(&cdf->ref);
memset(cdf, 0, sizeof(*cdf));
}
void dav1d_cdf_thread_wait(CdfThreadContext *const cdf) {
......
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