For unmatched sqlite3_prepare_v2 statments from init, added sqlite3_finalize statements in release
authorKrista Grothoff <krista@pep-project.org>
Mon, 01 Aug 2016 10:32:39 +0200
changeset 9574f10946e3a2a
parent 956 132711e18e0f
child 960 ac6b3f010e34
For unmatched sqlite3_prepare_v2 statments from init, added sqlite3_finalize statements in release
src/pEpEngine.c
     1.1 --- a/src/pEpEngine.c	Mon Aug 01 10:14:46 2016 +0200
     1.2 +++ b/src/pEpEngine.c	Mon Aug 01 10:32:39 2016 +0200
     1.3 @@ -559,6 +559,18 @@
     1.4                  sqlite3_finalize(session->blacklist_is_listed);
     1.5              if (session->blacklist_retrieve)
     1.6                  sqlite3_finalize(session->blacklist_retrieve);
     1.7 +            if (session->own_key_is_listed)
     1.8 +                sqlite3_finalize(session->own_key_is_listed);
     1.9 +            if (session->own_key_retrieve)
    1.10 +                sqlite3_finalize(session->own_key_retrieve);
    1.11 +            if (session->sequence_value1)
    1.12 +                sqlite3_finalize(session->sequence_value1);
    1.13 +            if (session->sequence_value2)
    1.14 +                sqlite3_finalize(session->sequence_value1);
    1.15 +            if (session->set_revoked)
    1.16 +                sqlite3_finalize(session->set_revoked);
    1.17 +            if (session->get_revoked)
    1.18 +                sqlite3_finalize(session->get_revoked);
    1.19  
    1.20              if (session->db)
    1.21                  sqlite3_close_v2(session->db);