diff options
| author | Anna Zaks <ganna@apple.com> | 2012-11-13 20:22:03 +0000 |
|---|---|---|
| committer | Anna Zaks <ganna@apple.com> | 2012-11-13 20:22:03 +0000 |
| commit | 7420b76579ea6658bd0019804dcd77a0c4fa0a08 (patch) | |
| tree | e9d799ad881b091593bf3e7c0d493adedfee6096 /lib/CodeGen/CodeGenModule.cpp | |
| parent | d490d5d5b7f761892905bae2c779a6331aafb9e4 (diff) | |
| download | clang-7420b76579ea6658bd0019804dcd77a0c4fa0a08.tar.gz clang-7420b76579ea6658bd0019804dcd77a0c4fa0a08.tar.bz2 clang-7420b76579ea6658bd0019804dcd77a0c4fa0a08.tar.xz | |
Fix a Malloc Checker FP by tracking return values from initWithCharacter
and other functions.
When these functions return null, the pointer is not freed by
them/ownership is not transfered. So we should allow the user to free
the pointer by calling another function when the return value is NULL.
Commits: 167813, 167814, 167868
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_32@167870 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
