From 624c3546a8abd1835a606aee7fead6bc3cd1a5f5 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 3 Nov 2016 12:03:54 -0300 Subject: [PATCH] test --- iguana/iguana_recv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index f23cb773c..f86c985ee 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -2191,6 +2191,7 @@ int32_t iguana_pollQsPT(struct iguana_info *coin,struct iguana_peer *addr) } else printf("datalen.%d from gethdrs\n",datalen); free(hashitem); hashstr = 0; + hashitem = 0; } } //if ( netBLOCKS > coin->MAXPEERS*coin->MAXPENDING ) @@ -2230,6 +2231,7 @@ int32_t iguana_pollQsPT(struct iguana_info *coin,struct iguana_peer *addr) if ( bp->emitfinish != 0 ) { //printf("skip emitting bundle [%d:%d]\n",bp->hdrsi,req->bundlei); + free(req); return(0); } block = bp->blocks[req->bundlei]; @@ -2246,7 +2248,7 @@ int32_t iguana_pollQsPT(struct iguana_info *coin,struct iguana_peer *addr) iguana_sendblockreqPT(coin,addr,bp,req->bundlei,hash2,0); } flag++; - myfree(req,sizeof(*req)); + free(req); } return(flag); }