missing sqlite3_finalize() in release()
authorVolker Birk <vb@pep-project.org>
Sun, 20 Mar 2016 08:43:11 +0100
changeset 5174ec92b2afed3
parent 516 c141128e83df
child 518 f0d4c48f57b4
missing sqlite3_finalize() in release()
src/pEpEngine.c
     1.1 --- a/src/pEpEngine.c	Fri Mar 18 22:14:35 2016 +0100
     1.2 +++ b/src/pEpEngine.c	Sun Mar 20 08:43:11 2016 +0100
     1.3 @@ -354,24 +354,40 @@
     1.4  
     1.5  	if (session) {
     1.6  		if (session->db) {
     1.7 +            if (session->log)
     1.8 +                sqlite3_finalize(session->log);
     1.9              if (session->trustword)
    1.10                  sqlite3_finalize(session->trustword);
    1.11 -            if (session->log)
    1.12 -                sqlite3_finalize(session->log);
    1.13              if (session->get_identity)
    1.14                  sqlite3_finalize(session->get_identity);
    1.15 -            if (session->set_identity)
    1.16 -                sqlite3_finalize(session->set_identity);
    1.17              if (session->set_person)
    1.18                  sqlite3_finalize(session->set_person);
    1.19              if (session->set_pgp_keypair)
    1.20                  sqlite3_finalize(session->set_pgp_keypair);
    1.21 +            if (session->set_identity)
    1.22 +                sqlite3_finalize(session->set_identity);
    1.23              if (session->set_trust)
    1.24                  sqlite3_finalize(session->set_trust);
    1.25              if (session->get_trust)
    1.26                  sqlite3_finalize(session->get_trust);
    1.27              if (session->least_trust)
    1.28                  sqlite3_finalize(session->least_trust);
    1.29 +            if (session->mark_compromized)
    1.30 +                sqlite3_finalize(session->mark_compromized);
    1.31 +            if (session->crashdump)
    1.32 +                sqlite3_finalize(session->crashdump);
    1.33 +            if (session->languagelist)
    1.34 +                sqlite3_finalize(session->languagelist);
    1.35 +            if (session->i18n_token)
    1.36 +                sqlite3_finalize(session->i18n_token);
    1.37 +            if (session->blacklist_add)
    1.38 +                sqlite3_finalize(session->blacklist_add);
    1.39 +            if (session->blacklist_delete)
    1.40 +                sqlite3_finalize(session->blacklist_delete);
    1.41 +            if (session->blacklist_is_listed)
    1.42 +                sqlite3_finalize(session->blacklist_is_listed);
    1.43 +            if (session->blacklist_retrieve)
    1.44 +                sqlite3_finalize(session->blacklist_retrieve);
    1.45  
    1.46              if (session->db)
    1.47                  sqlite3_close_v2(session->db);