From 1bc379ff312275a051d38e35ea014666e3bdf470 Mon Sep 17 00:00:00 2001 From: Stephen Lombardo Date: Tue, 28 Aug 2018 15:47:18 -0400 Subject: [PATCH] explanitory comment on memory wiping --- src/malloc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/malloc.c b/src/malloc.c index 0a408847..12d9b2cb 100644 --- a/src/malloc.c +++ b/src/malloc.c @@ -131,6 +131,9 @@ int sqlite3MallocInit(void){ sqlite3MemSetDefault(); /* BEGIN SQLCIPHER */ #ifdef SQLITE_HAS_CODEC + /* install wrapping functions for memory management + that will wipe all memory allocated by SQLite + when freed */ extern void sqlcipher_init_memmethods(); sqlcipher_init_memmethods(); #endif