Fossil SCM
Make sure emailerShutdown() correctly closes the emailqueue database.
Commit
b9121b4797a15636ae5a95f5e17c4939b58ae26f78f166ec838ac6d2f9ce9c03
Parent
4c839973e4ae1b4…
1 file changed
+1
-1
+1
-1
| --- src/email.c | ||
| +++ src/email.c | ||
| @@ -348,11 +348,11 @@ | ||
| 348 | 348 | ** Shutdown an emailer. Clear all information other than the error message. |
| 349 | 349 | */ |
| 350 | 350 | static void emailerShutdown(EmailSender *p){ |
| 351 | 351 | sqlite3_finalize(p->pStmt); |
| 352 | 352 | p->pStmt = 0; |
| 353 | - sqlite3_free(p->db); | |
| 353 | + sqlite3_close(p->db); | |
| 354 | 354 | p->db = 0; |
| 355 | 355 | p->zDb = 0; |
| 356 | 356 | p->zDir = 0; |
| 357 | 357 | p->zCmd = 0; |
| 358 | 358 | p->zDest = "off"; |
| 359 | 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_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 |