align_malloc() is used to allocate dri_sw_dt->data, thus we should not
be using FREE() but align_free().
Cc: "11.2 11.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
[Emil Velikov: tweak commit summary/shortlog]
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
{
struct dri_sw_displaytarget *dri_sw_dt = dri_sw_displaytarget(dt);
- FREE(dri_sw_dt->data);
+ align_free(dri_sw_dt->data);
FREE(dri_sw_dt);
}