HomePhabricator

knownhosts: Fix possible memory leak

Authored by ansasaki on Jul 2 2019, 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>

Details

Committed
ansasakiJul 4 2019, 10:29 AM
Parents
rLIBSSH8e42ed82201f: tests: Added a check for unaccessible global known_hosts
Branches
Unknown
Tags
Unknown