]> granicus.if.org Git - clang/commit
[analyzer] Fix realloc related bug in the malloc checker.
authorAnna Zaks <ganna@apple.com>
Fri, 24 Aug 2012 02:28:20 +0000 (02:28 +0000)
committerAnna Zaks <ganna@apple.com>
Fri, 24 Aug 2012 02:28:20 +0000 (02:28 +0000)
commit55dd956d521d4d650dfd929d67f4b98ede61c0ea
tree5f878eff76444c47a7bce4740e6da1aafc487425
parent4f534e70b0922fa74d56022b71f0099d4b2c4e6b
[analyzer] Fix realloc related bug in the malloc checker.

When reallocation of a non-allocated (not owned) symbol fails do not
expect it to be freed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162533 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/MallocChecker.cpp
test/Analysis/malloc.c