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

PropertyConfigurator::configureAndWatch leaks memory and threads

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: None
    • Component/s: Configurator
    • Labels:
      None
    • Environment:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: