summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2022-10-13 08:04:14 +0300
committerGitHub <noreply@github.com>2022-10-13 08:04:14 +0300
commit2974f525ec703329ef6ad079d8f6c685cfab11ad (patch)
treeb0e289a5fee787d764ee37cb8b5c2ac7bcd1bd20 /web
parentc805a9afad71ac96e703d599cbd6f54c29142ca7 (diff)
overload libc memory allocators with custom ones to trace all allocations (#13810)
* overload libc memory allocators with custom ones to trace all allocations * grab libc pointers for external c plugins * use -ldl when necessary; fallback to work without dlsym when it is not available * initialize global variable * add optional dl libs * dynamically link every library function when needed for the first time * prevent crashes on musl libc * another attempt * dont dereference function * attempt no 3 * attempt no 4 * cleanup - all attempts failed * dont enable tracing of allocations * missing parenthesis
Diffstat (limited to 'web')
-rw-r--r--web/api/web_api_v1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/api/web_api_v1.c b/web/api/web_api_v1.c
index 9b1b10c3ca..b58bb9b88b 100644
--- a/web/api/web_api_v1.c
+++ b/web/api/web_api_v1.c
@@ -1325,7 +1325,7 @@ inline int web_client_api_request_v1_info_fill_buffer(RRDHOST *host, BUFFER *wb)
buffer_strcat(wb, "\t\"ml-info\": ");
buffer_strcat(wb, ml_info);
- free(ml_info);
+ freez(ml_info);
#endif
buffer_strcat(wb, "\n}");