From aa4b433fb0a977165043de3ba82901639387e980 Mon Sep 17 00:00:00 2001 From: Jose Marcial Vieira Bisneto Date: Tue, 6 Jun 2017 19:29:12 -0300 Subject: [PATCH] The sanity check won't attempt to free uninitialized memory. --- core/ping.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/ping.c b/core/ping.c index f7f2111..860d4c1 100644 --- a/core/ping.c +++ b/core/ping.c @@ -31,6 +31,8 @@ int ipfs_ping (int argc, char **argv) char* repo_path = NULL; // sanity check + local_node.peerstore = NULL; + local_node.providerstore = NULL; if (argc < 3) goto exit;