summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo Alcantara <palcantara@suse.de>2018-04-17 11:30:15 -0300
committerPaulo Alcantara <palcantara@suse.de>2018-04-17 11:30:15 -0300
commit9e87c14e958764f7f2868f0027475f8093deb9b3 (patch)
treeff0107f9c296e87326ffd5d7fedaf425228745ec
parent01c15ba45f0d38305b5c01b630e67c9ecd0da781 (diff)
downloadvmhtool-9e87c14e958764f7f2868f0027475f8093deb9b3.tar.gz
vmhtool-9e87c14e958764f7f2868f0027475f8093deb9b3.tar.xz
vmhtool-9e87c14e958764f7f2868f0027475f8093deb9b3.zip
Fix unclosed conf file when getting vm macaddr
Signed-off-by: Paulo Alcantara <palcantara@suse.de>
-rwxr-xr-xvmhelper1
1 files changed, 1 insertions, 0 deletions
diff --git a/vmhelper b/vmhelper
index 7148a09..07b8f94 100755
--- a/vmhelper
+++ b/vmhelper
@@ -308,6 +308,7 @@ sub get_vm_macaddr {
my ($name, $macaddr) = split /\s+/;
return $macaddr;
}
+ close($conf) or die "failed to close file: $!";
return '';
}