From 3e70e792af4f216e2aa54d26b38841985658c9ff Mon Sep 17 00:00:00 2001 From: Arnaud Date: Mon, 15 Jun 2026 14:30:52 +0400 Subject: [PATCH] Update library/storage_thread_requests/requests/node_p2p_request.nim Co-authored-by: Eric <5089238+emizzle@users.noreply.github.com> Signed-off-by: Arnaud --- library/storage_thread_requests/requests/node_p2p_request.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/storage_thread_requests/requests/node_p2p_request.nim b/library/storage_thread_requests/requests/node_p2p_request.nim index 44a45e40..fd19f17f 100644 --- a/library/storage_thread_requests/requests/node_p2p_request.nim +++ b/library/storage_thread_requests/requests/node_p2p_request.nim @@ -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)