I really need some help with memory leaks. I compiled code.c
(shown bellow) with gcc -Wall -pedantic -Wno-long-long -g -std=c99 -fsanitize=address code.c
and run it, Address Sanitizer not detect memory leaks.
How to detect these memory leaks, please?
Here is my code (code.c
):
#include <stdio.h>
#include <stdlib.h>
#define
…
Top comments (1)
Hmm, works here
That was under Fedora 33 with gcc version 10.2.1 20201125 (Red Hat 10.2.1-9) (GCC) and libasan 10.2.1 (F33 package).