summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2012-08-16 20:26:46 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2012-08-23 14:34:56 +0200
commit59ca324c35f3898070a5ad4cb0ec267a1eb4a292 (patch)
treed22a4d42331385e23049cf72405fb8da31c2fea2
parented53b4b6740973411acee52a31fca9c48c585dab (diff)
downloadlvm2-59ca324c35f3898070a5ad4cb0ec267a1eb4a292.zip
lvm2-59ca324c35f3898070a5ad4cb0ec267a1eb4a292.tar.gz
lvm2-59ca324c35f3898070a5ad4cb0ec267a1eb4a292.tar.xz
clvmd: release excl_uuid hash
Release allocated hash before exit.
-rw-r--r--daemons/clvmd/clvmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/daemons/clvmd/clvmd.c b/daemons/clvmd/clvmd.c
index 4efa237..f74490a 100644
--- a/daemons/clvmd/clvmd.c
+++ b/daemons/clvmd/clvmd.c
@@ -371,7 +371,8 @@ int main(int argc, char *argv[])
case 'R':
check_permissions();
- return refresh_clvmd(1)==1?0:1;
+ ret = (refresh_clvmd(1) == 1) ? 0 : 1;
+ goto out;
case 'S':
check_permissions();