1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-22 18:25:57 +01:00

Fix possible memory leak in active tests

This commit is contained in:
Marin Peko
2019-04-08 15:57:51 +02:00
parent d8d1dc003b
commit 0d52763a61

View File

@@ -62,7 +62,7 @@ private:
template <typename T>
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