Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-414

Potential memory leaks in readConfFile () function of class AxisConfig

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5 Alpha
    • None
    • Basic Architecture
    • None
    • Windows

    Description

      Its better to initialize pcValue to null when it defines.

      int AxisConfig::readConfFile ()
      {
      char carrLine[CONFBUFFSIZE];
      char *pcValue;
      //char *pcValue = NULL;

      AxisFile fileConfig; /*AxisFile is AxisC++ resource for file manipulation */
      char *sConfPath = NULL;

      Attachments

        Activity

          People

            Unassigned Unassigned
            dchandradasa Marcus Dushshantha Chandradasa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: