Skip to content
  • David Hallas's avatar
    Fix malloc/delete mismatch · a617da3b
    David Hallas authored
    Summary:
    Fixes pointer was allocated with malloc (by libssh) but freed with
    delete. This is not safe and causes undefined behavior.
    
    Test Plan: Build and run kio_sftp with address sanitizer
    
    Reviewers: #frameworks, dfaure, sitter, aacid
    
    Reviewed By: aacid
    
    Subscribers: aacid, kde-frameworks-devel, kfm-devel
    
    Tags: #dolphin, #frameworks
    
    Differential Revision: https://phabricator.kde.org/D19767
    a617da3b