mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
gallium: Use MALLOC().
This commit is contained in:
parent
d8ae972fd0
commit
3f1b712d0a
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue