diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-28 20:55:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-28 20:55:17 +0300 |
commit | 79e8799a0782a018833ec0003bb0e5086508da07 (patch) | |
tree | dd810411b64ac009d9965d79919a43d8c9e095f4 /src/net/download.cpp | |
parent | 6d709b0c218791fdacdbd8b234a1301a135aeb33 (diff) | |
download | manaverse-79e8799a0782a018833ec0003bb0e5086508da07.tar.gz manaverse-79e8799a0782a018833ec0003bb0e5086508da07.tar.bz2 manaverse-79e8799a0782a018833ec0003bb0e5086508da07.tar.xz manaverse-79e8799a0782a018833ec0003bb0e5086508da07.zip |
fix some leaks issues.
Diffstat (limited to 'src/net/download.cpp')
-rw-r--r-- | src/net/download.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/download.cpp b/src/net/download.cpp index d0c6515fc..141a7772f 100644 --- a/src/net/download.cpp +++ b/src/net/download.cpp @@ -568,6 +568,7 @@ size_t Download::writeFunction(void *ptr, memcpy(buf, ptr, totalMem); buf[totalMem] = 0; mUploadResponse.append(buf); + delete [] buf; return totalMem; } |