
How to properly close TDLib instances without memory leak #2608
Sep 18, 2023 · 31 bytes in 1 blocks are definitely lost in loss record 6 of 8 at 0x484282F: malloc (vg_replace_malloc.c:431) by 0x13EE1D3: tdsqlite3MemMalloc by 0x13AAE4C: …
tdlib fails to compile with -fsanitize=leak #2116 - GitHub
Sep 4, 2022 · The workaround suggested in #1733 does not work. ==170==ERROR: LeakSanitizer: detected memory leaks Direct leak of 5328 byte (s) in 111 object (s) allocated …
td/td/telegram/cli.cpp at master · tdlib/td · GitHub
// which may be incompatible with the std::malloc () called by strdup // It is especially likely to happen if Readline is used as dynamic library // Unfortunately Readline doesn't provide …
td/sqlite/sqlite/sqlite3.h at master · tdlib/td · GitHub
The ** Windows VFS uses native malloc () and free () for some operations. ** ** ^The tdsqlite3_malloc () routine returns a pointer to a block ** of memory at least N bytes in length, …
td/sqlite/sqlite/sqlite3session.h at master · tdlib/td · GitHub
** Similarly, those that return a changeset or patchset do so by returning ** a pointer to a single large buffer allocated using tdsqlite3_malloc (). ** Normally this is convenient.
td/memprof/memprof.cpp at master · tdlib/td · GitHub
void *operator new (std::size_t count) { return malloc_with_frame (count, get_backtrace ()); } void operator delete (void *ptr) noexcept (true) { free (ptr); } // because of gcc warning: the program …
tdweb build error · Issue #1749 · tdlib/td · GitHub
Nov 25, 2021 · em++: error: '/Users/jiangjun/emsdk/upstream/bin/wasm-ld -o /var/folders/gt/ydphnqvd42s3h84mms0ywjw40000gn/T/emscripten_temp_we9dxxul/td_wasm.wasm …
New JSON interface with ffi-napi returns an error: symbol not …
Oct 25, 2020 · U _BIO_clear_flags U _BIO_free U _BIO_get_data U _BIO_get_new_index U _BIO_meth_new U _BIO_meth_set_create U _BIO_meth_set_ctrl U _BIO_meth_set_destroy …
error while building the library for iOS · Issue #440 · tdlib/td
Dec 23, 2018 · "_BN_bin2bn", referenced from: td::BigNum::from_binary (td::Slice) in libtdutils.a (BigNum.cpp.o) "_CRYPTO_malloc", referenced from: _sqlcipher_openssl_hmac in …
td/td/generate/tl-parser/tl-parser.c at master · tdlib/td · GitHub
return r; }*/ #define talloc (a) malloc (a) #define tfree (a,b) free (a) #define talloc0 (a) calloc (a,1) #define tstrdup (a) strdup (a) typedef char error_int_must_be_4_byte [ (sizeof (int) == 4) ? 1 : …