Browse Source

fix getpost memory leak. fixes miguelfreitas/twister-html#161

miguelfreitas
Miguel Freitas 11 years ago
parent
commit
3931001e9b
  1. 1
      libtorrent/src/torrent.cpp
  2. 2
      src/clientversion.h

1
libtorrent/src/torrent.cpp

@ -954,6 +954,7 @@ namespace libtorrent
printf("piece read error (database corrupt?) - setting we_dont_have(%d)\n", j.piece); printf("piece read error (database corrupt?) - setting we_dont_have(%d)\n", j.piece);
we_dont_have(j.piece); we_dont_have(j.piece);
} }
if (j.buffer) m_ses.free_disk_buffer(j.buffer);
(*reqs)--; (*reqs)--;
if (!(*reqs)) cond->notify_all(); if (!(*reqs)) cond->notify_all();

2
src/clientversion.h

@ -8,7 +8,7 @@
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0 #define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 9 #define CLIENT_VERSION_MINOR 9
#define CLIENT_VERSION_REVISION 20 #define CLIENT_VERSION_REVISION 21
#define CLIENT_VERSION_BUILD 0 #define CLIENT_VERSION_BUILD 0
// Set to true for release, false for prerelease or test build // Set to true for release, false for prerelease or test build

Loading…
Cancel
Save