mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

ludovicp
31.56.2010 62c2e252d9c0059420f030878584ec1d595c3247
Fix issue #4509. Fixes a memory leak in the External Changelog (retained a ref on the ServerHandler objects)
1 files modified
10 ■■■■ changed files
opends/src/server/org/opends/server/replication/server/ExternalChangeLogSessionImpl.java 10 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ExternalChangeLogSessionImpl.java
@@ -22,7 +22,7 @@
 * CDDL HEADER END
 *
 *
 *      Copyright 2009 Sun Microsystems, Inc.
 *      Copyright 2009-2010 Sun Microsystems, Inc.
 */
package org.opends.server.replication.server;
@@ -92,7 +92,11 @@
   */
  public void close()
  {
    if (handler.getDomain() != null)
      handler.getDomain().stopServer(handler, false);
    // ECL is a special case in the sense that there is no
    // ECL replication server domain
    // The handler is like orphan so no way to use the regular
    // handler.getDomain().stopServer(handler, ....)
    // instead call directly handler.
    handler.shutdown();
  }
}