MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / strdup_test

Function strdup_test

3rd/mimalloc-2.0.9/test/main-override.cpp:175–184  ·  view source on GitHub ↗

issue 445

Source from the content-addressed store, hash-verified

173
174// issue 445
175static void strdup_test() {
176#ifdef _MSC_VER
177 char* s = _strdup("hello\n");
178 char* buf = NULL;
179 size_t len;
180 _dupenv_s(&buf, &len, "MIMALLOC_VERBOSE");
181 mi_free(buf);
182 mi_free(s);
183#endif
184}
185
186// Issue #202
187static void heap_no_delete_worker() {

Callers

nothing calls this directly

Calls 1

mi_freeFunction · 0.85

Tested by

no test coverage detected