Author: fperrad
Date: Fri Feb 22 00:35:24 2008
New Revision: 25977

Modified:
   trunk/languages/lua/pmc/luastring.pmc

Log:
[Lua]
- same as r25930 but in tobase

Modified: trunk/languages/lua/pmc/luastring.pmc
==============================================================================
--- trunk/languages/lua/pmc/luastring.pmc       (original)
+++ trunk/languages/lua/pmc/luastring.pmc       Fri Feb 22 00:35:24 2008
@@ -1019,7 +1019,6 @@
 
         /* at least one valid digit? */
         if (s1 != s2) {
-            string_cstring_free(s1);
 
             /* skip trailing spaces */
             while (isspace((unsigned char)(*s2)))
@@ -1029,6 +1028,7 @@
             if (*s2 == '\0') {
                 PMC *retval = pmc_new(INTERP, dynpmc_LuaNumber);
                 VTABLE_set_number_native(INTERP, retval, n);
+                string_cstring_free(s1);
                 return retval;
             }
         }

Reply via email to