diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-01-30 21:40:37 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-01-30 21:40:37 +0000 |
commit | 3c267e6262bb319c8e56c9ea1283c7087f9ac107 (patch) | |
tree | 53ff8683fbd725231c5cd9dd8d998516d08bee7c /lib/StaticAnalyzer/Core/ProgramState.cpp | |
parent | 7fc800356f3c86a0c63e94353d7a1ac5a0ffbf66 (diff) |
objc-arc: Perform null check on receiver before sending methods which
consume one or more of their arguments. If not done, this will cause a leak
as method will not consume the argument when receiver is null.
In this patch, the null path releases consumed argument.
// rdar://10444474
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149279 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/ProgramState.cpp')
0 files changed, 0 insertions, 0 deletions