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

PropertyConfigurator::configureAndWatch leaks memory and threads

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.10.0
    • None
    • Configurator
    • None
    • WinXP 64 bit

    Description

      Each call to configureAndWatch causes a new FileWatcher object to be created (without deleting the old one) and consequently a new thread to be created (even though the old one may still be running).

      This means that it's very unsafe to call configureAndWatch more than once (and even when calling it just once, it leaks soem mem and a thread).

      Attachments

        1. propertyconfigurator.cpp.patch
          1 kB
          Florian Seydoux

        Issue Links

          Activity

            People

              jsouthwell Joseph Southwell
              assaflavie Assaf Lavie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: