From a5ebcf05271e484266ae7cfd62150c87835ec1e3 Mon Sep 17 00:00:00 2001 From: Doi Yusuke Date: Tue, 3 Jan 2017 22:57:25 +0900 Subject: [PATCH 1/2] Fix memory error [AVOID] avoid error. not closed. --- src/core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.cpp b/src/core.cpp index af040ea..16e93f7 100644 --- a/src/core.cpp +++ b/src/core.cpp @@ -85,7 +85,7 @@ std::shared_ptr ics::Core::getCore(const std::string& path, speed_t b { static std::unordered_map> cache; auto objPtr = cache[path].lock(); // try get - for (const auto& data : cache) if (data.second.expired()) cache.erase(data.first); // clean cashe +// for (const auto& data : cache) if (data.second.expired()) cache.erase(data.first); // clean cashe //FIXME error code if (!objPtr) { // get failed objPtr = std::make_shared(path, baudrate); cache[path] = objPtr; From 5498d3d9cc0187723ccd87d23698991c5c87a856 Mon Sep 17 00:00:00 2001 From: Doi Yusuke Date: Tue, 3 Jan 2017 22:58:47 +0900 Subject: [PATCH 2/2] Register version 1.3.2 Hotfix memory error. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d6e0e4..f1f2a2e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ project(ics3 C CXX) set(PROJECT_VER_MAJOR 1) set(PROJECT_VER_MINOR 3) -set(PROJECT_VER_PATCH 1) +set(PROJECT_VER_PATCH 2) set(PROJECT_VER "${PROJECT_VER_MAJOR}.${PROJECT_VER_MINOR}.${PROJECT_VER_PATCH}") set(PROJECT_APIVER "${PROJECT_VER_MAJOR}.${PROJECT_VER_MINOR}")