summaryrefslogtreecommitdiffstats
path: root/libs/blkid/src/tag.c
diff options
context:
space:
mode:
authorKarel Zak2009-02-24 16:39:04 +0100
committerKarel Zak2009-02-24 16:39:04 +0100
commitc8f1e920ab9e28f2fd52b9023b85144c3c90d80c (patch)
treee8a3dc13924ccf45178b7a004b71ff5326d2e23e /libs/blkid/src/tag.c
parentblkid: remove useless if-before-free tests (diff)
downloadkernel-qcow2-util-linux-c8f1e920ab9e28f2fd52b9023b85144c3c90d80c.tar.gz
kernel-qcow2-util-linux-c8f1e920ab9e28f2fd52b9023b85144c3c90d80c.tar.xz
kernel-qcow2-util-linux-c8f1e920ab9e28f2fd52b9023b85144c3c90d80c.zip
blkid: fix a syntax nit
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libs/blkid/src/tag.c')
-rw-r--r--libs/blkid/src/tag.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/blkid/src/tag.c b/libs/blkid/src/tag.c
index bb9171d99..f7d04950a 100644
--- a/libs/blkid/src/tag.c
+++ b/libs/blkid/src/tag.c
@@ -204,7 +204,8 @@ int blkid_set_tag(blkid_dev dev, const char *name,
errout:
if (t)
blkid_free_tag(t);
- else free(val);
+ else
+ free(val);
if (head)
blkid_free_tag(head);
return -BLKID_ERR_MEM;