This patch fixes the two reported new/delete mismatches. There might
be more, but my limited testing did not show any.
I'm going to do an NMU with this fix as part of my NMU to get vat
compiled with the new C++ ABI.
--- vat-4.0b2.orig/Tcl.cc
+++ vat-4.0b2/Tcl.cc
@@ -80,7 +84,7 @@
char* p = new char[n + 1];
strcpy(p, s);
eval(p);
- delete p;
+ delete[] p;
}
}
@@ -92,7 +96,7 @@
char* wrk = new char[n + 80];
sprintf(wrk, "tkerror \"%s: %s\"", application_, s);
Tcl_GlobalEval(tcl_, wrk);
- delete wrk;
+ delete[] wrk;
//exit(1);
}
}
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]