]> www.ginac.de Git - ginac.git/commitdiff
Fixed memory leak program.
authorJens Vollinga <vollinga@thep.physik.uni-mainz.de>
Thu, 22 Nov 2007 02:40:31 +0000 (02:40 +0000)
committerJens Vollinga <vollinga@thep.physik.uni-mainz.de>
Thu, 22 Nov 2007 02:40:31 +0000 (02:40 +0000)
check/parser_memleak.cpp

index ebc6ed9f59a750584aa7de0e88b7627738bfcdc8..d1d4bccd35716d7e3095377ff301bea5bf66c19a 100644 (file)
@@ -18,7 +18,7 @@ int main(int argc, char** argv) {
        const symbol x("x"), y("y");
        const lst syms(x, y);
        // parser-generated symbol => memory leak.
-       static const char* str[] = { "x2+2*x*y + cos(x)", "Li2(x/y) + log(y/x)" };
+       static const char* str[] = { "x²+2*x*y + cos(x)", "Li2(x/y) + log(y/x)" };
        
        // depends on the amount of the available VM, compiler options, etc.
        const unsigned N_max = 500000;