summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/db.c b/db.c
index 735f510..4390d76 100644
--- a/db.c
+++ b/db.c
@@ -144,7 +144,7 @@ void db_init(void) {
if (upg->post_func) {
if (r) {
LOGEV("Error while executing upgrade: %s, continuing anyway", errmsg);
- free(errmsg);
+ sqlite3_free(errmsg);
}
upg->post_func(r);
} else if (r) {