This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Commit ccdac33
committed
[[ Bug 22020 ]] Fix memory leak when dbsqlite connection fails
This patch fixes a memory leak which occurs when opening a dbsqlite
connection fails. As sqlite3_open will create a connection struct
even if there is an error, sqlite3_close must be called regardless of
the error returned when opening it.1 parent c3e607b commit ccdac33
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
429 | 438 | | |
| 439 | + | |
430 | 440 | | |
431 | 441 | | |
432 | 442 | | |
| |||
0 commit comments