bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/29263] New: Memory leak in VMDouble.toString()


From: freebeans at xqb dot biglobe dot ne dot jp
Subject: [Bug classpath/29263] New: Memory leak in VMDouble.toString()
Date: 28 Sep 2006 07:24:37 -0000

VMDouble.toString() calls _dtoa() function.
_dtoa() calls _dtoa_r() function.
--- dtoa.c line 904 ---
  p = _dtoa_r (&reent, _d, mode, ndigits, decpt, sign, rve, float_type);
  strcpy (buf, p);
-----------------------
and _dtoa_r() allocate memory for result string.

--- dtoa.c line 446 ---
  ptr->_result = Balloc (ptr, ptr->_result_k);
  s = s0 = (char *) ptr->_result;
  ...
  return s0;
---
But _dtoa() does not free that memory.


-- 
           Summary: Memory leak in VMDouble.toString()
           Product: classpath
           Version: 0.92
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: freebeans at xqb dot biglobe dot ne dot jp


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29263





reply via email to

[Prev in Thread] Current Thread [Next in Thread]