Diff between 4334be027ae1ad50193025c90e77a76b64464b53 and 35cbfd9660949fca23418bfa32fd51d81ed91208
Changed Files
| File | Additions | Deletions | Status |
| tools/mesh/mesh-db.c | +2 | -0 | modified |
Full Patch
diff --git a/tools/mesh/mesh-db.c b/tools/mesh/mesh-db.c
index fa11837..896ff72 100644
--- a/tools/mesh/mesh-db.c
+++ b/tools/mesh/mesh-db.c
@@ -2384,6 +2384,8 @@ bool mesh_db_load(const char *fname)
sz = read(fd, str, st.st_size);
if (sz != st.st_size) {
+ close(fd);
+ l_free(str);
l_error("Failed to read configuration file %s", fname);
return false;
}