How to use Valgrind to track file descriptors | Red Hat Developer
https://developers.redhat.com/articles/2023/01/09/how-use-valgrind-track-file-descriptors
webJan 9, 2023 · Valgrind tracks all system calls that create or close/destroy file descriptors. So at the end of your program, it can show you which were opened but never closed. Take, for example, this trivial program that reads a preferences file but forgets to close it after it has read all program settings: #include <stdio.h> int main () { /* Read preferences.
DA: 38 PA: 21 MOZ Rank: 6