fix segfault by initializing make_shared

This commit is contained in:
woodser
2020-05-14 08:09:56 -04:00
parent 9324c64451
commit 576df9c40f
+1 -1
View File
@@ -2063,7 +2063,7 @@ namespace monero {
}
// link tx set and return
shared_ptr<monero_tx_set> tx_set;
shared_ptr<monero_tx_set> tx_set = make_shared<monero_tx_set>();
tx_set->m_txs = txs;
for (int i = 0; i < txs.size(); i++) txs[i]->m_tx_set = tx_set;
if (!multisig_tx_hex.empty()) tx_set->m_multisig_tx_hex = multisig_tx_hex;