diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-01-23 16:39:14 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-01-23 16:39:14 +0000 |
commit | 9da7ca027e7aa3ba9a4a35fa79a5367782e33571 (patch) | |
tree | a04988d2d0bd3354f8d4165af59f02a2187be240 /protocols/VKontakte/src | |
parent | 5e1548f7902322e8efe75c390c64c6b958c43b2d (diff) |
VKontakte: fix memory leak (detected by coverity)
git-svn-id: http://svn.miranda-ng.org/main/trunk@11895 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r-- | protocols/VKontakte/src/vk_files.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/vk_files.cpp b/protocols/VKontakte/src/vk_files.cpp index ba40af49e8..4f46bd54ce 100644 --- a/protocols/VKontakte/src/vk_files.cpp +++ b/protocols/VKontakte/src/vk_files.cpp @@ -235,6 +235,8 @@ void CVkProto::OnReciveUploadServer(NETLIBHTTPREQUEST *reply, AsyncHttpRequest * if (lBytes != iFileLen) {
SendFileFiled(fup, _T("ErrorReadFile"));
+ mir_free(pUploadReq->pData);
+ delete pUploadReq;
return;
}
|