Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node-v0.x-archive
base: 32b456328027
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: 681013223f92
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on May 23, 2014

  1. smalloc: prevent double free on dispose()

    dispose() free's the memory when executed and sets the external array
    data to NULL and length to zero.
    
    To prevent the same memory from being free'd twice when the object is
    garbage collected we first check if the object's external array data
    length == 0. Since alloc() passes NULL to
    SetIndexedPropertiesToExternalArrayData() if length == 0 there's no
    opportunity for memory leak.
    trevnorris committed May 23, 2014
    Copy the full SHA
    6810132 View commit details
    Browse the repository at this point in the history