MCPcopy Create free account
hub / github.com/audacity/audacity / registerOomSimulator

Function registerOomSimulator

lib-src/sqlite/shell.c:529–535  ·  view source on GitHub ↗

Register the OOM simulator. This must occur before any memory ** allocations */

Source from the content-addressed store, hash-verified

527/* Register the OOM simulator. This must occur before any memory
528** allocations */
529static void registerOomSimulator(void){
530 sqlite3_mem_methods mem;
531 sqlite3_config(SQLITE_CONFIG_GETMALLOC, &mem);
532 defaultMalloc = mem.xMalloc;
533 mem.xMalloc = oomMalloc;
534 sqlite3_config(SQLITE_CONFIG_MALLOC, &mem);
535}
536#endif
537
538/*

Callers 1

wmainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected