Skip to content

Commit dc2cc9a

Browse files
Calling deactivate before freeing the memory
1 parent b4bb526 commit dc2cc9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/crypto_openssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ static int sqlcipher_openssl_ctx_init(void **ctx) {
145145
}
146146

147147
static int sqlcipher_openssl_ctx_free(void **ctx) {
148-
sqlcipher_free(*ctx, sizeof(openssl_ctx));
149148
sqlcipher_openssl_deactivate(*ctx);
149+
sqlcipher_free(*ctx, sizeof(openssl_ctx));
150150
return SQLITE_OK;
151151
}
152152

0 commit comments

Comments
 (0)