Skip to content

Commit 64d77c3

Browse files
committed
destroy prepared stmt object on success, too
if I'm reading this right, the local stmt object will leak here too if not finalized
1 parent cf989b0 commit 64d77c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/scitokens_cache.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ scitokens::Validator::store_public_keys(const std::string &issuer, const picojso
250250

251251
sqlite3_exec(db, "COMMIT", 0, 0 , 0);
252252

253+
sqlite3_finalize(stmt);
253254
sqlite3_close(db);
254255
return true;
255256
}

0 commit comments

Comments
 (0)