diff --git a/iguana/dpow/dpow_rpc.c b/iguana/dpow/dpow_rpc.c index c238f5677..2b8cb488d 100755 --- a/iguana/dpow/dpow_rpc.c +++ b/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); }