Commit 60ff3002 authored by James Almer's avatar James Almer

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) {
free(data);
dav1d_free_aligned(data);
} else {
res->data = data;
}
......
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