D19768: Fixes memory leak of ssh_session
David Hallas
noreply at phabricator.kde.org
Thu Mar 14 19:09:59 GMT 2019
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20190314/5ce1d8b5/attachment.htm>
More information about the kfm-devel
mailing list