From c0d8b373adebbf8396b16537bd4d633ab6659900 Mon Sep 17 00:00:00 2001 From: Szymon Andrzejuk Date: Mon, 13 Jan 2020 13:01:58 +0100 Subject: virgl: Use align_free for align_malloc allocated buffer Signed-off-by: Szymon Andrzejuk Reviewed-by: Gurchetan Singh --- src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c') 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); -- cgit v1.2.1