Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive with pointer returned through struct value (speex) #42

Closed
rillian opened this issue Jun 12, 2015 · 1 comment
Closed
Assignees

Comments

@rillian
Copy link

rillian commented Jun 12, 2015

Thanks for the tool release! It's great to see new code in the static analysis space.

I found a false positive with the speex library. It sees a leak when a pointer is allocated and then returned as a member in a struct value. It may be more complicated than that, since I wasn't able to reproduce with a simpler test case.

src/skeleton.c:138: error: MEMORY_LEAK
   memory dynamically allocated to fp.message_header_fields by call to calloc() at line 135, column 82 is not reachable after line 138, column 5

https://github.com/xiph/speex/blob/master/src/skeleton.c#L138

@dulmarod dulmarod self-assigned this Jun 15, 2015
@jvillard jvillard added the c label Jun 22, 2015
@jvillard
Copy link
Contributor

this bug is not found anymore with the latest versions of infer and speex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants