summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-06-07 10:09:03 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-06-07 10:09:03 +0000
commit711e7411ade85f86f9e6b9b6e72d7dedf85e44a4 (patch)
tree864a0198abae1afc9e7cb11d34d090f57ea8dd54 /src
parent750e01d70da59b2f615528b3587a6318b4836c69 (diff)
We do not always have to believe static analyzers :-D
git-svn-id: http://svn.miranda-ng.org/main/trunk@16938 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r--src/mir_core/src/memory.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mir_core/src/memory.cpp b/src/mir_core/src/memory.cpp
index d2b055a221..fb94b6c855 100644
--- a/src/mir_core/src/memory.cpp
+++ b/src/mir_core/src/memory.cpp
@@ -107,10 +107,8 @@ MIR_C_CORE_DLL(void*) mir_realloc(void* ptr, size_t size)
}
else p = NULL;
- ptr = p;
p = (char*)realloc(p, size + sizeof(DWORD)*3);
if (p == NULL) {
- free(ptr);
OutputDebugStringA("memory overflow\n");
#if defined(_DEBUG)
DebugBreak();