Remove valgrind hooks. In this house, we use asan and custom allocators. Smaller.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4302 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-05-17 18:24:10 +00:00
parent bf9ff088fd
commit e237c7ea1d
3 changed files with 0 additions and 7471 deletions

View File

@ -11,7 +11,6 @@
#include "util.js.h"
#include <backtrace.h>
#include <memcheck.h>
#include <quickjs.h>
#include <sqlite3.h>
#include <xopt.h>
@ -676,13 +675,6 @@ static int _tf_command_usage(const char* file, int argc, char* argv[])
return 0;
}
#if !defined(_WIN32)
static void _do_leak_checks(int sig)
{
VALGRIND_DO_LEAK_CHECK;
}
#endif
static void _backtrace_error(void* data, const char* message, int errnum)
{
tf_printf("libbacktrace error %d: %s\n", errnum, message);
@ -720,10 +712,6 @@ int main(int argc, char* argv[])
{
perror("signal");
}
if (signal(SIGHUP, _do_leak_checks) == SIG_ERR)
{
perror("signal");
}
#endif
int result = 0;