From 0f37f242dd79d8e60b674d6c47e1c305de3a1950 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 28 May 2010 13:07:34 +0800 Subject: [PATCH] st/vega: Use FREE. Match MALLOC with FREE. Otherwise, it causes weird segfaults when built with memory debugging. --- src/gallium/state_trackers/vega/util_array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/vega/util_array.h b/src/gallium/state_trackers/vega/util_array.h index 4343dfe36e2..b2d22f476ee 100644 --- a/src/gallium/state_trackers/vega/util_array.h +++ b/src/gallium/state_trackers/vega/util_array.h @@ -65,7 +65,7 @@ static INLINE void array_destroy(struct array *array) { if (array) free(array->data); - free(array); + FREE(array); } static INLINE void array_resize(struct array *array, int num) -- 2.30.2