1
From 6a047831103bc5404b779f668cfa984738a718fa Mon Sep 17 00:00:00 2001
2
From: Colin Ian King <colin.king@canonical.com>
3
Date: Wed, 12 Mar 2014 09:50:08 +0000
4
Subject: [PATCH 32/33] coverity scan: fix leaking dir
6
Close dir before returning on error exit path, fixes leak detected
9
Signed-off-by: Colin Ian King <colin.king@canonical.com>
11
src/thd_engine_default.cpp | 1 +
12
1 file changed, 1 insertion(+)
14
diff --git a/src/thd_engine_default.cpp b/src/thd_engine_default.cpp
15
index f1158ef..46badd0 100644
16
--- a/src/thd_engine_default.cpp
17
+++ b/src/thd_engine_default.cpp
18
@@ -117,6 +117,7 @@ int cthd_engine_default::read_thermal_sensors() {
19
temp_input_str.str(), SENSOR_TYPE_RAW);
20
if (sensor->sensor_update() != THD_SUCCESS) {
25
sensors.push_back(sensor);