hallas created this revision. hallas added a reviewer: Frameworks. Herald added projects: Dolphin, Frameworks. Herald added subscribers: kfm-devel, kde-frameworks-devel. hallas requested review of this revision.
REVISION SUMMARY Fixes memory leak of ssh_session. The mSession member variable is allocated with a call to ssh_new in sftpOpenConnection but in the closeConnection a call to ssh_free was missing causing the ssh_session to be leaked. TEST PLAN Build and run kio_sftp with address sanitizer REPOSITORY R320 KIO Extras BRANCH fixes_memory_leak_of_session (branched from master) REVISION DETAIL https://phabricator.kde.org/D19768 AFFECTED FILES sftp/kio_sftp.cpp To: hallas, #frameworks Cc: kde-frameworks-devel, kfm-devel, alexde, feverfew, michaelh, spoorun, navarromorales, firef, ngraham, andrebarros, bruns, emmanuelp, mikesomov