colord/backport-0001-CVE-2021-42523.patch

28 lines
889 B
Diff
Raw Normal View History

2022-08-31 10:14:24 +08:00
From adf41f36cf7214d7d6fa8d528b74eba47c377405 Mon Sep 17 00:00:00 2001
From: Zero0one1 <arya_lee@qq.com>
Date: Fri, 2 Apr 2021 16:45:56 +0800
Subject: [PATCH] Fix a small memory leak in sqlite3_exec()
Fixes https://github.com/hughsie/colord/issues/110
2022-08-29 11:01:35 +08:00
Conflict:NA
2022-08-31 10:14:24 +08:00
Reference:https://github.com/hughsie/colord/commit/adf41f36cf7214d7d6fa8d528b74eba47c377405
2022-08-29 11:01:35 +08:00
---
2022-08-31 10:14:24 +08:00
src/cd-device-db.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
2022-08-29 11:01:35 +08:00
diff --git a/src/cd-device-db.c b/src/cd-device-db.c
2022-08-31 10:14:24 +08:00
index a212c83d..3ae44ef2 100644
2022-08-29 11:01:35 +08:00
--- a/src/cd-device-db.c
+++ b/src/cd-device-db.c
@@ -91,7 +91,7 @@ cd_device_db_load (CdDeviceDb *ddb,
/* check properties version 2 */
rc = sqlite3_exec (priv->db, "SELECT * FROM properties_v2 LIMIT 1",
- NULL, NULL, &error_msg);
+ NULL, NULL, NULL);
if (rc != SQLITE_OK) {
statement = "CREATE TABLE properties_v2 ("
"device_id TEXT,"