summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrumeet <yuuta@yuuta.moe>2023-03-19 17:17:46 -0700
committerTrumeet <yuuta@yuuta.moe>2023-03-19 17:17:46 -0700
commita94109487fc10b0d2b362d49490ce03ccf671867 (patch)
treef452c012de06260b2c082f115166336b336bf428
parent26e2eae9cc253ebd60519d7274ad57c6bdefbf67 (diff)
downloadksyxbot-a94109487fc10b0d2b362d49490ce03ccf671867.tar
ksyxbot-a94109487fc10b0d2b362d49490ce03ccf671867.tar.gz
ksyxbot-a94109487fc10b0d2b362d49490ce03ccf671867.tar.bz2
ksyxbot-a94109487fc10b0d2b362d49490ce03ccf671867.zip
Fix incorrect free(3)
-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) {