bes: fix memory leak
The BuildEventServiceModule would keep all BuildEventTransports around
after a command has finished. Fix this and add a test.
RELNOTES: None
@@ -130,6 +130,7 @@ public abstract class BuildEventServiceModule<T extends BuildEventServiceOptions
@Override
public void afterCommand() {
this.outErr = null;
+ this.transports = ImmutableSet.of();
}
/** Returns {@code null} if no stream could be created. */
