From bc853aecb44588a2a611bfe830f821ba31866c96 Mon Sep 17 00:00:00 2001 From: Stephen Lombardo Date: Wed, 23 Sep 2020 10:37:13 -0400 Subject: [PATCH] fix double free of reported default plaintext header size output --- src/crypto.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/crypto.c b/src/crypto.c index 7e76ff7f..200c3a5f 100644 --- a/src/crypto.c +++ b/src/crypto.c @@ -1,4 +1,4 @@ -/* +/* ** SQLCipher ** http://sqlcipher.net ** @@ -318,7 +318,6 @@ int sqlcipher_codec_pragma(sqlite3* db, int iDb, Parse *pParse, const char *zLef } else { char *size = sqlite3_mprintf("%d", sqlcipher_get_default_plaintext_header_size()); codec_vdbe_return_string(pParse, "cipher_default_plaintext_header_size", size, P4_DYNAMIC); - sqlite3_free(size); } }else if( sqlite3StrICmp(zLeft,"cipher_salt")==0 ){ -- 2.11.4.GIT