Uploaded image for project: 'Commons Daemon'
  1. Commons Daemon
  2. DAEMON-324

[home.c:130]: (error) Resource leak: cfgf

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.0.15
    • 1.1.0
    • None
    • None

    Description

      $ fgrep cfgf ../BUILD/commons-daemon-1.0.15-src/src/native/unix/native/home.c
      FILE *cfgf = fopen(data->cfgf, "r");
      if (cfgf == NULL) {
      log_debug("Can't open %s\n", data->cfgf);
      while ((ret = fgets(buf, 1024, cfgf)) != NULL) {
      char *cfgf = NULL;

      Suggest add call to fclose.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dcb David Binderman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: