mirror of
https://github.com/hanzoai/quickjs-emscripten.git
synced 2026-10-30 19:37:29 +00:00
* more doc polish * Free C strings returned from QuickJS * Add address sanitizer * Fix some leaks! * Fix some leaks in test * unfix an over-fixed test * doc * Fix sanitize dingus * Santizer self test * Split sanitizer out to own define * enable -ftlo link time optimization for release build * Remove extra string copy for QTS_GetString/QTS_Dump * oops: leak build * finally get C++ include settings working for emscripten.h
8 lines
151 B
C
8 lines
151 B
C
#include <emscripten.h>
|
|
#include <sanitizer/lsan_interface.h>
|
|
#include <stdlib.h>
|
|
|
|
int main() {
|
|
malloc(5000);
|
|
__lsan_do_recoverable_leak_check();
|
|
} |