mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-07 14:49:21 +00:00
* Fixed a corner-case where initial seeding would end up crashing rtorrent.
* Fixed a bad conditional that would result in write syscall being called with -1 for logging executing external commands. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1201 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -64,7 +64,7 @@ SCgiTask::realloc_buffer(uint32_t size, const char* buffer, uint32_t bufferSize)
|
||||
char* tmp = rak::cacheline_allocator<char>::alloc_size(size);
|
||||
|
||||
std::memcpy(tmp, buffer, bufferSize);
|
||||
delete [] m_buffer;
|
||||
::free(m_buffer);
|
||||
m_buffer = tmp;
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ SCgiTask::close() {
|
||||
get_fd().close();
|
||||
get_fd().clear();
|
||||
|
||||
delete [] m_buffer;
|
||||
::free(m_buffer);
|
||||
m_buffer = NULL;
|
||||
|
||||
// Test
|
||||
|
||||
Reference in New Issue
Block a user