Redo handling of aliased calls --> version 2007.02.13
[bigint/bigint.git] / BigUnsignedInABase.cc
index 762f14e..4692a0a 100644 (file)
@@ -1,6 +1,5 @@
 /*
 * Matt McCutchen's Big Integer Library
-* http://hashproduct.metaesthetics.net/bigint/
 */
 
 /*
@@ -118,6 +117,7 @@ BigUnsignedInABase::operator std::string() const {
                        s[symbolNumInString] = char('A' + theDigit - 10);
        }
        std::string s2(s);
-       delete s;
+       // 2006.05.03: This needs to be [] to match the allocation
+       delete [] s;
        return s2;
 }