From: Szymon Andrzejuk Date: Mon, 13 Jan 2020 12:01:58 +0000 (+0100) Subject: virgl: Use align_free for align_malloc allocated buffer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0d8b373adebbf8396b16537bd4d633ab6659900;p=mesa.git virgl: Use align_free for align_malloc allocated buffer Signed-off-by: Szymon Andrzejuk Reviewed-by: Gurchetan Singh --- diff --git a/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c b/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c index 1bb5d387cec..dbe3afe9f80 100644 --- a/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c +++ b/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c @@ -181,7 +181,7 @@ static void virgl_hw_res_destroy(struct virgl_vtest_winsys *vtws, if (res->ptr) os_munmap(res->ptr, res->size); } else { - free(res->ptr); + align_free(res->ptr); } FREE(res);