mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-06-27 12:59:30 +00:00
Fix guard check
This commit is contained in:
parent
3e70e792af
commit
bba3941c72
@ -46,9 +46,12 @@ proc createShared*(
|
||||
return ret
|
||||
|
||||
proc destroyShared*(self: ptr NodeP2PRequest) =
|
||||
if self == nil:
|
||||
return
|
||||
|
||||
deallocShared(self[].peerId)
|
||||
|
||||
if self[] != nil and self[].peerAddresses != nil:
|
||||
if self[].peerAddresses != nil:
|
||||
deallocShared(self[].peerAddresses)
|
||||
|
||||
deallocShared(self)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user