1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Merge pull request #341 from m-peko/master

Fix possible memory leak in active tests
This commit is contained in:
Matias Fontanini
2019-04-08 09:49:52 -07:00
committed by GitHub

View File

@@ -62,7 +62,7 @@ private:
template <typename T> template <typename T>
void ActiveTestRunner::add_test() { void ActiveTestRunner::add_test() {
tests_.emplace_back(new T(packet_sender_, configuration_)); tests_.emplace_back(std::unique_ptr<T>(new T(packet_sender_, configuration_)));
} }
#endif // TINS_ACTIVE_TEST_RUNNER_H #endif // TINS_ACTIVE_TEST_RUNNER_H