Files
Jake Teton-LandisandGitHub 181613f63f Introduce leak sanitizer, fix several string leaks (#59)
* 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
2022-03-20 04:18:06 +00:00

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();
}