Browse Source

Fix minor leak in get_txn.

master
Con Kolivas 8 years ago
parent
commit
03bd1bf50d
  1. 1
      src/bitcoin.c

1
src/bitcoin.c

@ -395,6 +395,7 @@ char *get_txn(connsock_t *cs, const char *hash)
LOGDEBUG("get_txn for hash %s got data %s", hash, ret); LOGDEBUG("get_txn for hash %s got data %s", hash, ret);
} else } else
LOGDEBUG("get_txn did not retrieve data for hash %s", hash); LOGDEBUG("get_txn did not retrieve data for hash %s", hash);
json_decref(val);
out: out:
return ret; return ret;
} }

Loading…
Cancel
Save