MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / cleanup

Method cleanup

source code/utils/ShellCommand.ts:94–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 }
93
94 cleanup(): void {
95 if (this.#isCleanedUp) {
96 return
97 }
98 this.#isCleanedUp = true
99 this.#stream!.removeListener('data', this.#onData)
100 // Release references so the stream, its StringDecoder, and
101 // the TaskOutput can be GC'd independently of this wrapper.
102 this.#stream = null
103 this.#taskOutput = null
104 this.#onData = () => {}
105 }
106}
107
108/**

Callers 15

runPowerShellCommandFunction · 0.45
cleanupFunction · 0.45
runShellCommandFunction · 0.45
ConsoleOAuthFlowFunction · 0.45
executeInBackgroundFunction · 0.45
execCommandHookFunction · 0.45
cleanupMethod · 0.45
finalizeHookFunction · 0.45
startWorkPollLoopFunction · 0.45
runBridgeLoopFunction · 0.45
OAuthFlowStepFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected