diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-08-13 13:27:32 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-08-13 13:27:32 -0400 |
commit | f45cde05f934ee95e0002ff7d72f7006ce156a4c (patch) | |
tree | b8c98e0b3867ccea1f9d7a8976ee76b27d3984e6 /src/common/memarea.c | |
parent | 37d19fdfcd4bc82da3276c18b616e7c64ca0c6ab (diff) | |
download | tor-f45cde05f934ee95e0002ff7d72f7006ce156a4c.tar.gz tor-f45cde05f934ee95e0002ff7d72f7006ce156a4c.zip |
Remove tor_malloc_roundup().
This function never actually did us any good, and it added a little
complexity. See the changes file for more info.
Diffstat (limited to 'src/common/memarea.c')
-rw-r--r-- | src/common/memarea.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/memarea.c b/src/common/memarea.c index 07bd593cc9..e87c0fbed6 100644 --- a/src/common/memarea.c +++ b/src/common/memarea.c @@ -118,7 +118,7 @@ alloc_chunk(size_t sz, int freelist_ok) size_t chunk_size = freelist_ok ? CHUNK_SIZE : sz; memarea_chunk_t *res; chunk_size += SENTINEL_LEN; - res = tor_malloc_roundup(&chunk_size); + res = tor_malloc(chunk_size); res->next_chunk = NULL; res->mem_size = chunk_size - CHUNK_HEADER_SIZE - SENTINEL_LEN; res->next_mem = res->u.mem; |