Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smalloc: don't mix malloc() and new char[] #1205

Merged
merged 1 commit into from
Mar 19, 2015

Commits on Mar 19, 2015

  1. smalloc: don't mix malloc() and new char[]

    It's technically undefined behavior to mix malloc with delete[] and
    new char[] with free().  smalloc was using new char[] in one place and
    malloc() in another but in both cases the memory was freed with free().
    
    PR-URL: nodejs#1205
    Reviewed-By: Trevor Norris <trev.norris@gmail.com>
    bnoordhuis committed Mar 19, 2015
    Configuration menu
    Copy the full SHA
    2034137 View commit details
    Browse the repository at this point in the history