mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-06-27 12:59:30 +00:00
Update library/storage_thread_requests/requests/node_p2p_request.nim
Co-authored-by: Eric <5089238+emizzle@users.noreply.github.com> Signed-off-by: Arnaud <arno.deville@gmail.com>
This commit is contained in:
parent
6a1499c05c
commit
3e70e792af
@ -48,7 +48,7 @@ proc createShared*(
|
||||
proc destroyShared*(self: ptr NodeP2PRequest) =
|
||||
deallocShared(self[].peerId)
|
||||
|
||||
if self[].peerAddresses != nil:
|
||||
if self[] != nil and self[].peerAddresses != nil:
|
||||
deallocShared(self[].peerAddresses)
|
||||
|
||||
deallocShared(self)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user