summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/malloc-annotations.c
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-02-10 01:11:00 +0000
committerAnna Zaks <ganna@apple.com>2012-02-10 01:11:00 +0000
commit3188686c55bc5841b7403fe147f841b5d3736ad4 (patch)
treee35f5b1691ae41e4b76445edaec2c153743b557a /clang/test/Analysis/malloc-annotations.c
parentbaa41d41758beb136975047ce14c5f148fc050ba (diff)
downloadbcm5719-llvm-3188686c55bc5841b7403fe147f841b5d3736ad4.tar.gz
bcm5719-llvm-3188686c55bc5841b7403fe147f841b5d3736ad4.zip
[analyzer] MallocChecker Cleanup - harden against crashes, fix an error
(use of return instead of continue), wording. llvm-svn: 150215
Diffstat (limited to 'clang/test/Analysis/malloc-annotations.c')
-rw-r--r--clang/test/Analysis/malloc-annotations.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Analysis/malloc-annotations.c b/clang/test/Analysis/malloc-annotations.c
index 0d7e402c8ad..7890cfc1764 100644
--- a/clang/test/Analysis/malloc-annotations.c
+++ b/clang/test/Analysis/malloc-annotations.c
@@ -199,13 +199,13 @@ void pr6293() {
void f7() {
char *x = (char*) malloc(4);
free(x);
- x[0] = 'a'; // expected-warning{{Use dynamically allocated memory after it is freed.}}
+ x[0] = 'a'; // expected-warning{{Use of dynamically allocated memory after it is freed.}}
}
void f7_realloc() {
char *x = (char*) malloc(4);
realloc(x,0);
- x[0] = 'a'; // expected-warning{{Use dynamically allocated memory after it is freed.}}
+ x[0] = 'a'; // expected-warning{{Use of dynamically allocated memory after it is freed.}}
}
void PR6123() {
OpenPOWER on IntegriCloud