Commit d30b9339 authored by James Almer's avatar James Almer

Use aligned free() in dav1d_open() error code path

These were all allocated with aligned malloc().
parent 0cf63fb7
...@@ -136,10 +136,10 @@ error: ...@@ -136,10 +136,10 @@ error:
if (c->fc) { if (c->fc) {
for (int n = 0; n < c->n_fc; n++) for (int n = 0; n < c->n_fc; n++)
if (c->fc[n].tc) if (c->fc[n].tc)
free(c->fc[n].tc); dav1d_free_aligned(c->fc[n].tc);
free(c->fc); dav1d_free_aligned(c->fc);
} }
free(c); dav1d_freep_aligned(c_out);
} }
fprintf(stderr, "Failed to allocate memory: %s\n", strerror(errno)); fprintf(stderr, "Failed to allocate memory: %s\n", strerror(errno));
return -ENOMEM; return -ENOMEM;
......
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