Fix the coverity issues
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / services / mesh / bt-service-mesh-util.c
index ccb13e0..2d44d0b 100644 (file)
@@ -277,6 +277,7 @@ bool _bt_mesh_util_delete_file(const char *filename)
 
        if (fstat(fd, &st) < 0) {
                BT_ERR("Mesh: Failed to stat [%s]", filename);
+               close(fd);
                return false;
        }