projects
/
platform
/
core
/
appfw
/
aul-1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd855d9
)
Use sqlite3_close_v2()
03/296703/1
author
Hwankyu Jhun
<h.jhun@samsung.com>
Thu, 3 Aug 2023 08:04:09 +0000
(17:04 +0900)
committer
Hwankyu Jhun
<h.jhun@samsung.com>
Thu, 3 Aug 2023 08:04:09 +0000
(17:04 +0900)
If the database handle is opened using sqlite3_open_v2(),
we MUST use sqlite3_close_v2() to close the database properly.
Change-Id: Ia53b59df23674e821fea15a79d239dcb45fd2282
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
parser/metadata/common/database.cc
patch
|
blob
|
history
diff --git
a/parser/metadata/common/database.cc
b/parser/metadata/common/database.cc
index
5699971
..
6399e13
100644
(file)
--- a/
parser/metadata/common/database.cc
+++ b/
parser/metadata/common/database.cc
@@
-87,7
+87,7
@@
void Database::Open() {
void Database::Close() {
if (db_) {
- sqlite3_close(db_);
+ sqlite3_close
_v2
(db_);
db_ = nullptr;
}
}