diff options
Diffstat (limited to 'parallel-libs/streamexecutor/lib/HostMemory.cpp')
-rw-r--r-- | parallel-libs/streamexecutor/lib/HostMemory.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/parallel-libs/streamexecutor/lib/HostMemory.cpp b/parallel-libs/streamexecutor/lib/HostMemory.cpp index f7fbe044aa3..8eba7e6b563 100644 --- a/parallel-libs/streamexecutor/lib/HostMemory.cpp +++ b/parallel-libs/streamexecutor/lib/HostMemory.cpp @@ -20,9 +20,8 @@ namespace internal { void destroyRegisteredHostMemoryInternals(Device *TheDevice, void *Pointer) { // TODO(jhen): How to handle errors here? - if (Pointer) { + if (Pointer) consumeError(TheDevice->unregisterHostMemory(Pointer)); - } } } // namespace internal |