summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/p_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/pipe/p_util.h')
-rw-r--r--src/mesa/pipe/p_util.h4
1 files changed, 2 insertions, 2 deletions
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;