This wasn't an FP a few weeks ago.
int main(const char *params) { uint8_t *a = calloc(10 , 1); if ( a == NULL ) return 0; uint8_t *b = calloc(10, 1); if ( b == NULL ) { free(a); return 0; } free(a); free(b); return 0; }
FP4c.c:12:7: error: Memory leak: a [memleak] return 0;
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/11044
I can confirm this is now fixed. Thanks !. only two more FPs in 2.8 to get back to 2.7 for me 10681 11009 :)
Log in to post a comment.
This wasn't an FP a few weeks ago.
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/11044
I can confirm this is now fixed. Thanks !. only two more FPs in 2.8 to get back to 2.7 for me 10681 11009 :)