Commit 20341373 authored by Ben Noordhuis's avatar Ben Noordhuis
Browse files

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: https://github.com/iojs/io.js/pull/1205


Reviewed-By: default avatarTrevor Norris <trev.norris@gmail.com>
parent 46555214
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment