Small memory leak when create GrowableArray with initial size 0

XMLWordPrintable

    • b17

        GrowableArray's c-heap allocate() does not check initial max size == 0 and calls os::malloc(0), which malloc 1 byte. After the array expands, it leaks the byte.

              Assignee:
              Zhengyu Gu
              Reporter:
              Zhengyu Gu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: