diff options
author | drh <drh@noemail.net> | 2014-09-18 21:25:33 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-09-18 21:25:33 +0000 |
commit | 17bcb102993a155dec69a58e2f079a880e1967b7 (patch) | |
tree | 8abc9f4462b8269582e7e4aa23c7af3dd82dd360 /src/utf.c | |
parent | 26c79a060b2e7fdf6d05585a3b44d0498df3fe1c (diff) | |
download | sqlite-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |