[llvm-commits] CVS: llvm-test/MultiSource/Applications/hbd/decomp.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri May 13 11:09:15 PDT 2005
Changes in directory llvm-test/MultiSource/Applications/hbd:
decomp.cpp updated: 1.1 -> 1.2
---
Log message:
use delete[] for new[]'d memory
---
Diffs of the changes: (+1 -1)
decomp.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm-test/MultiSource/Applications/hbd/decomp.cpp
diff -u llvm-test/MultiSource/Applications/hbd/decomp.cpp:1.1 llvm-test/MultiSource/Applications/hbd/decomp.cpp:1.2
--- llvm-test/MultiSource/Applications/hbd/decomp.cpp:1.1 Fri Feb 27 12:06:48 2004
+++ llvm-test/MultiSource/Applications/hbd/decomp.cpp Fri May 13 13:08:59 2005
@@ -146,7 +146,7 @@
strptr = new char[mi->access_flags.strlen() + 1];
fprintf(c->outfile, "\n %s", mi->access_flags.toString(strptr));
- delete strptr;
+ delete [] strptr;
char *tmp = mi->sig;
if (printsigname(c, c->outfile, tmp, mi->name, mi)) return 1;
for (int m = 0; m != mi->num_throws;) {
More information about the llvm-commits
mailing list