Merge branch 'noc-1188' into 'master'

#1188 Fix memory leak on SSH CLI.

See merge request !3094

(cherry picked from commit 9364f24d)

3a84cdee Fix memory leak on SSH CLI.
13 jobs for !3096 with cherry-pick-9364f24d in 21 minutes and 8 seconds (queued for 3 seconds)
merge request