fix build with allocator debugging

This commit is contained in:
Arvid Norberg 2014-01-06 05:45:36 +00:00
parent a427f4d4d3
commit 16594d27ef
1 changed files with 2 additions and 1 deletions

View File

@ -124,7 +124,7 @@ namespace libtorrent
// fprintf(stderr, "malloc: %p head: %p tail: %p size: %d\n", ret + page, ret, ret + page + bytes, int(bytes));
return ret + page;
#endif
#else
#if TORRENT_USE_POSIX_MEMALIGN
void* ret;
@ -143,6 +143,7 @@ namespace libtorrent
#else
return (char*)valloc(bytes);
#endif
#endif // TORRENT_DEBUG_BUFFERS
}
void page_aligned_allocator::free(char* const block)