Skip to content

Commit 957ce93

Browse files
JunjunGu1lzha101
authored andcommitted
remove the stored config when destroy enclave
Signed-off-by: junjungu <junjun.gu@intel.com>
1 parent 2eed93a commit 957ce93

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sdk/simulation/urtssim/enclave_creator_sim.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@ int EnclaveCreatorSim::destroy_enclave(sgx_enclave_id_t enclave_id, uint64_t enc
239239

240240
if(enclave == NULL)
241241
return SGX_ERROR_INVALID_ENCLAVE_ID;
242+
243+
if(s_enclave_elrange_map.count(enclave->get_start_address()) != 0)
244+
{
245+
s_enclave_elrange_map.erase(enclave->get_start_address());
246+
}
247+
242248
return ::destroy_enclave(enclave_id);
243249
}
244250

0 commit comments

Comments
 (0)