This reverts commit c5d63854 from 8/11/2011. The memory copy is not a leak, but is required to avoid memory corruption.