Menu

#48 bandwidthd.c:1109]: (error) Resource leak: cdf

v1.0 (example)
open
nobody
None
5
2016-03-27
2016-03-27
dcb
No

Source code is

if(fscanf(cdf, " %15[0-9.],%lu,", ipaddrBuffer, &timestamp) != 2)
    {
    syslog(LOG_ERR, "%s is corrupted, skipping", filename);
    return FALSE;
    }

Suggest add missing call to fclose.

Discussion


Log in to post a comment.