summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZero0one1 <arya_lee@qq.com>2021-04-02 16:45:56 +0800
committerGitHub <noreply@github.com>2021-04-02 09:45:56 +0100
commitadf41f36cf7214d7d6fa8d528b74eba47c377405 (patch)
tree83652a497ec05c77d8f3af2ee6f95bfab092f2fd
parente55e75117d278a66a776ff1e0a4d573f9a6619d7 (diff)
downloadcolord-adf41f36cf7214d7d6fa8d528b74eba47c377405.tar.gz
Fix a small memory leak in sqlite3_exec()
Fixes https://github.com/hughsie/colord/issues/110
-rw-r--r--src/cd-device-db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cd-device-db.c b/src/cd-device-db.c
index a212c83..3ae44ef 100644
--- 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,"