Diff between d9fac04901c8884156c9780df158346854c8fca4 and e3c14b2627ed8fd6277a72761539cb54111fc205

Changed Files

File Additions Deletions Status
src/device.c +3 -1 modified

Full Patch

diff --git a/src/device.c b/src/device.c
index 235145a..89462ca 100644
--- a/src/device.c
+++ b/src/device.c
@@ -3165,8 +3165,10 @@ static int load_gatt_db_impl(GKeyFile *key_file, char **keys,
 		}
 
 		g_free(value);
-		if (ret)
+		if (ret) {
+			gatt_db_clear(db);
 			return ret;
+		}
 	}
 
 	if (current_service)