]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix coverity defects: CID 161638
authorGiuseppe Di Natale <dinatale2@users.noreply.github.com>
Tue, 9 May 2017 18:34:19 +0000 (11:34 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 9 May 2017 18:34:19 +0000 (11:34 -0700)
commit3e2ecae01c6de6f885eca2ea78f00db2d21065ef
treec444d643ad44e282bd3d8bff57cdab8f4d0a1cc1
parente624cd1959904735eda81f1a9a45d99848bb3503
Fix coverity defects: CID 161638

CID 161638: Resource leak (RESOURCE_LEAK)

Ensure the string array in print_zpool_script_help
is freed in cases when there is an error.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #6111
cmd/zpool/zpool_main.c