aboutsummaryrefslogtreecommitdiff
path: root/src/utf.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-09-18 21:25:33 +0000
committerdrh <drh@noemail.net>2014-09-18 21:25:33 +0000
commit17bcb102993a155dec69a58e2f079a880e1967b7 (patch)
tree8abc9f4462b8269582e7e4aa23c7af3dd82dd360 /src/utf.c
parent26c79a060b2e7fdf6d05585a3b44d0498df3fe1c (diff)
downloadsqlite-17bcb102993a155dec69a58e2f079a880e1967b7.tar.gz
sqlite-17bcb102993a155dec69a58e2f079a880e1967b7.zip
Add the Mem.szMalloc element to the Mem object and use it to keep track of
the size of the Mem.zMalloc allocation. FossilOrigin-Name: 9c09ac353df6041808cace41880f4729ee73f5e1
Diffstat (limited to 'src/utf.c')
-rw-r--r--src/utf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utf.c b/src/utf.c
index 549983f6f..25f4dadf0 100644
--- a/src/utf.c
+++ b/src/utf.c
@@ -320,6 +320,7 @@ SQLITE_NOINLINE int sqlite3VdbeMemTranslate(Mem *pMem, u8 desiredEnc){
pMem->enc = desiredEnc;
pMem->z = (char*)zOut;
pMem->zMalloc = pMem->z;
+ pMem->szMalloc = sqlite3DbMallocSize(pMem->db, pMem->z);
translate_out:
#if defined(TRANSLATE_TRACE) && defined(SQLITE_DEBUG)