From: Michal Krol Date: Thu, 7 Feb 2008 09:26:08 +0000 (+0100) Subject: gallium: Use MALLOC(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f1b712d0a47b440875e58429debd9a145192724;p=mesa.git gallium: Use MALLOC(). --- diff --git a/src/mesa/pipe/p_util.h b/src/mesa/pipe/p_util.h index a8938a7e43b..d7da2801c92 100644 --- a/src/mesa/pipe/p_util.h +++ b/src/mesa/pipe/p_util.h @@ -185,12 +185,12 @@ align_free(void *ptr) /** - * Duplicate of a block of memory + * Duplicate a block of memory. */ static INLINE void * mem_dup(const void *src, uint size) { - void *dup = malloc(size); + void *dup = MALLOC(size); if (dup) memcpy(dup, src, size); return dup;