[Device] Fix a memory leak

Signed-off-by: Regis Merlino <regis.merlino@intel.com>