offload_host.cpp (OffloadDescriptor::setup_misc_data): Use calloc instead of malloc.
authorIlya Verbin <ilya.verbin@intel.com>
Mon, 26 Oct 2015 14:38:02 +0000 (14:38 +0000)
committerIlya Verbin <iverbin@gcc.gnu.org>
Mon, 26 Oct 2015 14:38:02 +0000 (14:38 +0000)
commit0b7c37ee712fdc5164db6cd6acb816fcf6752c02
tree13c66ea2a6047f853a3a1325b9ed79848c78df4a
parent6a112b50ef2741a635b9235ca68890033b17322f
offload_host.cpp (OffloadDescriptor::setup_misc_data): Use calloc instead of malloc.

liboffloadmic/
* runtime/offload_host.cpp (OffloadDescriptor::setup_misc_data): Use
calloc instead of malloc.
(__offload_fini_library): Set mic_engines_total to zero.

Co-Authored-By: Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
From-SVN: r229368
liboffloadmic/ChangeLog
liboffloadmic/runtime/offload_host.cpp