Uses ::Copy instead of ::New which creates an internal buffer with malloc. This commit also removes some useless code done after exception is raised (so won't ever be executed) Signed-off-by: Eugene Bolshakov <pub@relvarsoft.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>