SWDEV-1 - Some 'delete' clean up

Change-Id: I02564f0f0e349375bde1471e9f82df268703367b


[ROCm/clr commit: 73967c3b17]
This commit is contained in:
Jason Tang
2021-09-06 17:55:09 -04:00
committato da Jason Tang
parent 3f5d248508
commit e94aec09bd
13 ha cambiato i file con 49 aggiunte e 123 eliminazioni
@@ -310,8 +310,7 @@ void HostcallListener::terminate() {
#if defined(__clang__)
#if __has_feature(address_sanitizer)
if (urilocator)
delete urilocator;
delete urilocator;
#endif
#endif
delete doorbell_;
@@ -355,8 +354,7 @@ bool HostcallListener::initialize(const amd::Device &dev) {
delete doorbell_;
#if defined(__clang__)
#if __has_feature(address_sanitizer)
if (urilocator)
delete urilocator;
delete urilocator;
#endif
#endif
return false;