Menu

New regression FP on head

dp11
2022-05-04
2022-05-11
  • dp11

    dp11 - 2022-05-04

    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;

     
  • CHR

    CHR - 2022-05-05

    Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/11044

     
  • dp11

    dp11 - 2022-05-11

    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.

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.