diff --git a/libcelt/os_support.h b/libcelt/os_support.h index e35c41b63c23ddb2f8147556218f8c06570c66ce..21f1617c9d1802f16c5e5a8d73f37d38ba06a8df 100644 --- a/libcelt/os_support.h +++ b/libcelt/os_support.h @@ -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