HomePhabricator

knownhosts: Fix possible memory leak

Authored by Anderson Toshiyuki Sasaki <ansasaki@redhat.com> on Tue, Jul 2, 10:21 AM.

Description

knownhosts: Fix possible memory leak

The memory allocated for host_port can leak if the global knownhosts
file is unaccessible.

Found by address sanitizer build in CI.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
(cherry picked from commit fe248414fec1e654e4ee1259927d68777dd870ae)

Details

Committed
Anderson Toshiyuki Sasaki <ansasaki@redhat.com>Thu, Jul 4, 11:25 AM
Parents
rLIBSSH79900e5246da: Bump version to 0.9.0
Branches
Unknown
Tags
Unknown