Fossil SCM

Make sure emailerShutdown() correctly closes the emailqueue database.

drh 2018-06-25 13:32 trunk
Commit b9121b4797a15636ae5a95f5e17c4939b58ae26f78f166ec838ac6d2f9ce9c03
1 file changed +1 -1
+1 -1
--- src/email.c
+++ src/email.c
@@ -348,11 +348,11 @@
348348
** Shutdown an emailer. Clear all information other than the error message.
349349
*/
350350
static void emailerShutdown(EmailSender *p){
351351
sqlite3_finalize(p->pStmt);
352352
p->pStmt = 0;
353
- sqlite3_free(p->db);
353
+ sqlite3_close(p->db);
354354
p->db = 0;
355355
p->zDb = 0;
356356
p->zDir = 0;
357357
p->zCmd = 0;
358358
p->zDest = "off";
359359
--- src/email.c
+++ src/email.c
@@ -348,11 +348,11 @@
348 ** Shutdown an emailer. Clear all information other than the error message.
349 */
350 static void emailerShutdown(EmailSender *p){
351 sqlite3_finalize(p->pStmt);
352 p->pStmt = 0;
353 sqlite3_free(p->db);
354 p->db = 0;
355 p->zDb = 0;
356 p->zDir = 0;
357 p->zCmd = 0;
358 p->zDest = "off";
359
--- src/email.c
+++ src/email.c
@@ -348,11 +348,11 @@
348 ** Shutdown an emailer. Clear all information other than the error message.
349 */
350 static void emailerShutdown(EmailSender *p){
351 sqlite3_finalize(p->pStmt);
352 p->pStmt = 0;
353 sqlite3_close(p->db);
354 p->db = 0;
355 p->zDb = 0;
356 p->zDir = 0;
357 p->zCmd = 0;
358 p->zDest = "off";
359

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button