[cfe-commits] r88683 - /cfe/trunk/test/Analysis/malloc.c
Ted Kremenek
kremenek at apple.com
Fri Nov 13 11:53:33 PST 2009
Author: kremenek
Date: Fri Nov 13 13:53:32 2009
New Revision: 88683
URL: http://llvm.org/viewvc/llvm-project?rev=88683&view=rev
Log:
Add test case that shows a leak we don't catch.
Modified:
cfe/trunk/test/Analysis/malloc.c
Modified: cfe/trunk/test/Analysis/malloc.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/malloc.c?rev=88683&r1=88682&r2=88683&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/malloc.c (original)
+++ cfe/trunk/test/Analysis/malloc.c Fri Nov 13 13:53:32 2009
@@ -6,6 +6,11 @@
return; // expected-warning{{Allocated memory never released. Potential memory leak.}}
}
+// THIS TEST CURRENTLY FAILS.
+void f1_b() {
+ int *p = malloc(10);
+}
+
void f2() {
int *p = malloc(10);
free(p);
More information about the cfe-commits
mailing list