From 6d94c4f15e2814c4db8fb56d206b97c73826c6ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 4 Aug 2010 20:48:20 +0200 Subject: [PATCH] Memory leaks: don't translate 'return p[10];' to 'return use ;' --- lib/checkmemoryleak.cpp | 3 ++- test/testmemleak.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/checkmemoryleak.cpp b/lib/checkmemoryleak.cpp index 4346b51b8..a8fbe2b9a 100644 --- a/lib/checkmemoryleak.cpp +++ b/lib/checkmemoryleak.cpp @@ -1266,7 +1266,8 @@ Token *CheckMemoryLeakInFunction::getcode(const Token *tok, std::list