diff options
| author | Jeff Sullivan <jeff.sullivan@woven-planet.global> | 2023-11-07 17:53:46 +0900 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2023-11-07 10:06:58 -0700 |
| commit | 0e16099d44a690bb7445b3b2231bb106d6887f8c (patch) | |
| tree | 1193244ab809b503625cc141327b0d0a73262f60 /scripts | |
| parent | 20b2ff19588be983ae75f3f1e243b2fd2380872d (diff) | |
| download | usermoji-0e16099d44a690bb7445b3b2231bb106d6887f8c.tar.xz | |
icd: Unmap mapped memory before freeing it
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/mock_icd_generator.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/mock_icd_generator.py b/scripts/mock_icd_generator.py index 499669f8..ea5c2f61 100644 --- a/scripts/mock_icd_generator.py +++ b/scripts/mock_icd_generator.py @@ -1497,6 +1497,8 @@ class MockICDOutputGenerator(OutputGenerator): elif True in [ftxt in api_function_name for ftxt in ['Destroy', 'Free']]: self.appendSection('command', '//Destroy object') if 'FreeMemory' in api_function_name: + # If the memory is mapped, unmap it + self.appendSection('command', ' UnmapMemory(device, memory);') # Remove from allocation map self.appendSection('command', ' unique_lock_t lock(global_lock);') self.appendSection('command', ' allocated_memory_size_map.erase(memory);') |
