* 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:
rakshasa
2011-04-06 09:59:54 +00:00
parent a3b763aba8
commit 18a6c61956
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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