aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2012-06-16 00:09:20 +0000
committerJordan Rose <jordan_rose@apple.com>2012-06-16 00:09:20 +0000
commitde409b6d5f9fa835ee4d7e22d571ff7fc0c052b1 (patch)
tree23ccadf55dde3bcbd588da01a99f1db7786c3422 /clang/lib/Basic/SourceManager.cpp
parent13ffdd86b93ff8bf5d26bca55119982c899bb5ce (diff)
downloadllvm-de409b6d5f9fa835ee4d7e22d571ff7fc0c052b1.zip
llvm-de409b6d5f9fa835ee4d7e22d571ff7fc0c052b1.tar.gz
llvm-de409b6d5f9fa835ee4d7e22d571ff7fc0c052b1.tar.bz2
[analyzer] Buffers passed to CGBitmapContextCreate can escape.
Specifically, although the bitmap context does not take ownership of the buffer (unlike CGBitmapContextCreateWithData), the data buffer can be extracted out of the created CGContextRef. Thus the buffer is not leaked even if its original pointer goes out of scope, as long as - the context escapes, or - it is retrieved via CGBitmapContextGetData and freed. Actually implementing that logic is beyond the current scope of MallocChecker, so for now CGBitmapContextCreate goes on our system function exception list. llvm-svn: 158579
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions