Browse Source

fix memleak

blackjok3r
blackjok3r 6 years ago
parent
commit
2fdd8a97d0
  1. 8
      iguana/dpow/dpow_rpc.c

8
iguana/dpow/dpow_rpc.c

@ -308,8 +308,12 @@ int32_t dpow_paxpending(struct supernet_info *myinfo,uint8_t *hex,int32_t hexsiz
coin = bp->srccoin;
if ( (infojson= dpow_getinfo(myinfo,kmdcoin)) != 0 )
{
if ( (srcinfojson= dpow_getinfo(myinfo,coin)) != 0 && jint(srcinfojson,"ppMoMheight") != 0 )
ppMoMheight = jint(infojson,"ppMoMheight");
if ( (srcinfojson= dpow_getinfo(myinfo,coin)) != 0 )
{
if ( jint(srcinfojson,"ppMoMheight") != 0 )
ppMoMheight = jint(infojson,"ppMoMheight");
free_json(srcinfojson);
}
kmdheight = jint(infojson,"blocks");
free_json(infojson);
}

Loading…
Cancel
Save