ref: d30b933940c309c9a0af0f4ae017db920ffb1037
parent: 0cf63fb76a9c7ebf72de2878a628a12673ee232c
author: James Almer <[email protected]>
date: Tue Sep 25 13:09:22 EDT 2018
Use aligned free() in dav1d_open() error code path These were all allocated with aligned malloc().
--- a/src/lib.c
+++ b/src/lib.c
@@ -136,10 +136,10 @@
if (c->fc) {
for (int n = 0; n < c->n_fc; n++)
if (c->fc[n].tc)
- free(c->fc[n].tc);
- free(c->fc);
+ dav1d_free_aligned(c->fc[n].tc);
+ dav1d_free_aligned(c->fc);
}
- free(c);
+ dav1d_freep_aligned(c_out);
}
fprintf(stderr, "Failed to allocate memory: %s\n", strerror(errno));
return -ENOMEM;