* src/sfnt.c (sfnt_read_cmap_table): Don't allocate too big
data. Also, free elements of (*data), not offsets into data
itself.
/* Second, read each encoding subtable itself. */
*data = xmalloc (cmap->num_subtables
- * sizeof **subtables);
+ * sizeof *data);
for (i = 0; i < cmap->num_subtables; ++i)
{
being unsupported.) Return now. */
for (j = 0; j < i; ++j)
- xfree (data[j]);
+ xfree ((*data)[j]);
xfree (*data);
xfree (*subtables);