facebook / infer

A static analyzer for Java, C, C++, and Objective-C
http://fbinfer.com/
MIT License
14.9k stars 2.01k forks source link

[iOS] Incorrect Memory Leak Detection #789

Open akkrat opened 6 years ago

akkrat commented 6 years ago

I see this as a MEMORY_LEAK. Is there a way to silence this? (using infer v0.12.1):

Message: error: MEMORY_LEAK memory dynamically allocated to machine by call to malloc() at line 505, column 21 (char *machine = malloc(size);) is not reachable after line 506, column 5 (sysctlbyname("hw.machine", machine, &size, NULL, 0);)

Previous issue was closed #52 , but it contains a new comment.

dulmarod commented 6 years ago

There isn't a way to silence individual bugs at the moment.