Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-166

PropertyConfigurator leaks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 0.9.7
    • None
    • Configurator
    • None
    • Windows XP Pro, Visual Studio 2003 SP1, DevPartner BoundsChecker 8.0

    Description

      When calling configureAndWatch(const File& configFilename, long delay), PropertyWatchdog is created but never destroyed.

      I was able to fix the problem doing following source code changes:

      src/PropertyConfigurator.cpp, line 114

      FileWatchdog*
      PropertyConfigurator::configureAndWatch(const File& configFilename)
      {
      return configureAndWatch(configFilename, FileWatchdog::DEFAULT_DELAY);
      }

      FileWatchdog*
      PropertyConfigurator::configureAndWatch(
      const File& configFilename, long delay)
      {
      PropertyWatchdog* pdog = new PropertyWatchdog(configFilename);
      pdog->setDelay(delay);
      pdog->start();
      return (FileWatchdog*)pdog;
      }

      src/Thread.cpp, line 28

      if (stat != APR_SUCCESS && stat != APR_INCOMPLETE) {

      Attachments

        Activity

          People

            carnold@apache.org Curt Arnold
            dbertrand David Bertrand
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: