From: Chia-I Wu Date: Fri, 28 May 2010 05:07:34 +0000 (+0800) Subject: st/vega: Use FREE. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f37f242dd79d8e60b674d6c47e1c305de3a1950;p=mesa.git st/vega: Use FREE. Match MALLOC with FREE. Otherwise, it causes weird segfaults when built with memory debugging. --- 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)