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/or/buffers.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/or/buffers.c')
-rw-r--r-- | src/or/buffers.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index 9acc22971a..a8d06cef1e 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -192,8 +192,6 @@ chunk_new_with_alloc_size(size_t alloc) freelist->lowest_length = freelist->cur_length; ++freelist->n_hit; } else { - /* XXXX take advantage of tor_malloc_roundup, once we know how that - * affects freelists. */ if (freelist) ++freelist->n_alloc; else @@ -216,7 +214,7 @@ static INLINE chunk_t * chunk_new_with_alloc_size(size_t alloc) { chunk_t *ch; - ch = tor_malloc_roundup(&alloc); + ch = tor_malloc(alloc); ch->next = NULL; ch->datalen = 0; ch->memlen = CHUNK_SIZE_WITH_ALLOC(alloc); |