Verified Commit 60ff3002 authored by James Almer's avatar James Almer
Browse files

ref: properly free the data buffer in dav1d_ref_create on failure

It was allocated with dav1d_alloc_aligned(), so a simple free() is
not correct.
parent 93550d88
Pipeline #3918 passed with stages
in 5 minutes
......@@ -45,7 +45,7 @@ Dav1dRef *dav1d_ref_create(const size_t size) {
res = dav1d_ref_wrap(data, default_free_callback, data);
if (!res) {
} else {
res->data = data;
Supports Markdown
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