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

This commit is contained in:
Miguel Freitas 2014-06-03 17:29:03 -03:00
parent adbdd709b4
commit 3931001e9b
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -8,7 +8,7 @@
// 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_MINOR 9
#define CLIENT_VERSION_REVISION 20
#define CLIENT_VERSION_REVISION 21
#define CLIENT_VERSION_BUILD 0
// Set to true for release, false for prerelease or test build