Browse Source

Free data in rare found situation.

master
Con Kolivas 8 years ago
parent
commit
a1ad3dc57f
  1. 1
      src/stratifier.c

1
src/stratifier.c

@ -1615,6 +1615,7 @@ static bool rebuild_txns(ckpool_t *ckp, sdata_t *sdata, workbase_t *wb)
txn->refcount = REFCOUNT_REMOTE; txn->refcount = REFCOUNT_REMOTE;
HASH_ADD_STR(sdata->txns, hash, txn); HASH_ADD_STR(sdata->txns, hash, txn);
} else { } else {
free(data);
txn->refcount = REFCOUNT_REMOTE; txn->refcount = REFCOUNT_REMOTE;
txn->seen = true; txn->seen = true;
JSON_CPACK(txn_val, "{ss,ss}", JSON_CPACK(txn_val, "{ss,ss}",

Loading…
Cancel
Save