[cfe-dev] Static analyzer: possible memory leak false positive?

Erik Cederstrand erik at cederstrand.dk
Fri Sep 14 02:15:22 PDT 2012


Hi all,

Before spamming Bugzilla, I'd like an opinion on this possible false positive in the static analyzer.

See http://scan.freebsd.your.org/freebsd-head/bin.df/2012-09-12-amd64/report-WwB2qk.html#EndPath

The analyzer is complaining about a memory leak of mntbuf two lines before the end of the main() function.

I'm not sure this is actually a false positive since it relies on the implicit behavior that the OS reclaims the memory regardless, but the warning does seem of minor value.

Kind regards,
Erik Cederstrand




More information about the cfe-dev mailing list