Menu

#19 wmweather+.c:598]: (error) Resource leak: fp

Default
closed-fixed
nobody
None
5
2016-12-24
2016-04-28
dcb
No

Source code is

    if(!parse_option(c, d)){
        warn("%s[%d]: %s", file, l, error);
        return 2;
    }

Suggest add missing call to fclose.

Discussion

  • Brad Jorsch

    Brad Jorsch - 2016-12-24

    Looks like there's also a missing free(file) there in some code paths.

     
  • Brad Jorsch

    Brad Jorsch - 2016-12-24
    • status: open --> closed-fixed
     
  • Brad Jorsch

    Brad Jorsch - 2016-12-24
    • Group: WONTFIX --> Default
     

Log in to post a comment.