[avar] Pre-alloc vector
diff --git a/src/hb-ot-var-avar-table.hh b/src/hb-ot-var-avar-table.hh
index fed1352..a76f5ad 100644
--- a/src/hb-ot-var-avar-table.hh
+++ b/src/hb-ot-var-avar-table.hh
@@ -188,6 +188,7 @@
     const auto &var_store = this+v2->varStore;
 
     hb_vector_t<int> out;
+    out.alloc (coords_length);
     for (unsigned i = 0; i < coords_length; i++)
     {
       int v = coords[i];