mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-09 03:32:29 +00:00
Fixed various memory problems.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@282 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -55,12 +55,8 @@ CurlStack::perform() {
|
||||
|
||||
void
|
||||
CurlStack::fdset(fd_set* readfds, fd_set* writefds, fd_set* exceptfds, int* maxFd) {
|
||||
int f;
|
||||
|
||||
if (curl_multi_fdset((CURLM*)m_handle, readfds, writefds, exceptfds, &f) > 0)
|
||||
if (curl_multi_fdset((CURLM*)m_handle, readfds, writefds, exceptfds, maxFd) > 0)
|
||||
throw torrent::local_error("Error calling curl_multi_fdset");
|
||||
|
||||
*maxFd = std::max(f, *maxFd);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user