hyperledger-archives / iroha

Iroha - A simple, decentralized ledger
http://iroha.tech
Apache License 2.0
988 stars 298 forks source link

Fix the rest of memory leaks #2086

Closed igor-egorov closed 5 years ago

igor-egorov commented 5 years ago

Signed-off-by: Igor Egorov igor@soramitsu.co.jp

Description of the Change

Fix the rest of memory leaks in irohad.

Benefits

Clean valgrind report.

Possible Drawbacks

?

Usage Examples or Tests

valgrind irohad (under Ubuntu-like environment with GNU compiler)

 ==15232== LEAK SUMMARY:
+==15232==    definitely lost: 0 bytes in 0 blocks
+==15232==    indirectly lost: 0 bytes in 0 blocks
+==15232==      possibly lost: 0 bytes in 0 blocks
 ==15232==    still reachable: 176,875 bytes in 1,787 blocks
 ==15232==         suppressed: 0 bytes in 0 blocks

Thanks to @lebdron!