Menu

#4 libexplain/buffer/errno/mount.c:319]: (error) Resource leak: fp

v1.0 (example)
open
nobody
None
5
2016-02-05
2016-02-05
dcb
No

$ fgrep -n fp ../BUILD/libexplain-1.4/libexplain/buffer/errno/mount.c | egrep "fopen|fclose"
101: fp = fopen("/proc/filesystems", "r");
140: fclose(fp);
282: fp = fopen("/proc/partitions", "r");
326: FILE *fp = fopen("/proc/filesystems", "r");
351: fclose(fp);
355: fclose(fp);
$

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.