Skip to content
Snippets Groups Projects
Commit 4a4a5464 authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Using malloc() rather than calloc() as generic allocator

parent 9d48deb8
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ static inline void *celt_alloc (size_t size)
/* WARNING: this is not equivalent to malloc(). If you want to use malloc()
or your own allocator, YOU NEED TO CLEAR THE MEMORY ALLOCATED. Otherwise
you will experience strange bugs */
return calloc(size,1);
return malloc(size);
}
#endif
......@@ -56,7 +56,7 @@ static inline void *celt_alloc (size_t size)
static inline void *celt_alloc_scratch (size_t size)
{
/* Scratch space doesn't need to be cleared */
return calloc(size,1);
return malloc(size);
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment