virgl: Use align_free for align_malloc allocated buffer
authorSzymon Andrzejuk <s.andrzejuk@samsung.com>
Mon, 13 Jan 2020 12:01:58 +0000 (13:01 +0100)
committerGurchetan Singh <gurchetansingh@chromium.org>
Sat, 1 Feb 2020 00:41:38 +0000 (00:41 +0000)
Signed-off-by: Szymon Andrzejuk <s.andrzejuk@samsung.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c

index 1bb5d387cec47f7f020e5449756cfe94eeffe0c5..dbe3afe9f80a41f6aced3cb56ac6eb2c6e7136b0 100644 (file)
@@ -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);