OSDN Git Service

gallium: Use MALLOC().
authorMichal Krol <michal@tungstengraphics.com>
Thu, 7 Feb 2008 09:26:08 +0000 (10:26 +0100)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Fri, 15 Feb 2008 02:22:07 +0000 (11:22 +0900)
src/mesa/pipe/p_util.h

index a8938a7..d7da280 100644 (file)
@@ -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;