diff --git a/fs_mgr/liblp/builder_test.cpp b/fs_mgr/liblp/builder_test.cpp index 34c68d4d4..fd16e90b6 100644 --- a/fs_mgr/liblp/builder_test.cpp +++ b/fs_mgr/liblp/builder_test.cpp @@ -31,8 +31,7 @@ class Environment : public ::testing::Environment { }; int main(int argc, char** argv) { - std::unique_ptr env(new Environment); - ::testing::AddGlobalTestEnvironment(env.get()); + ::testing::AddGlobalTestEnvironment(new Environment); ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); }