diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 794b2ef9e..353e33a87 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -330,7 +330,7 @@ int32_t iguana_utxogen(struct iguana_info *coin,struct iguana_bundle *bp) //printf("iguana_utxogen: already have Xspendinds[%d]\n",ramchain->numXspends); return(0); } - ptr = malloc(sizeof(*ptr) * n); + ptr = mycalloc('x',sizeof(*ptr),n); total += n; //printf("start UTXOGEN.%d max.%d ptr.%p\n",bp->bundleheight,n,ptr); for (spendind=ramchain->H.data->firsti; spendindhdrsi,errs,100.*(double)emitted/(total+1),emit,mbstr(str,sizeof(*ptr) * emit),n); return(-errs); }