summaryrefslogtreecommitdiff
path: root/e2fsprogs/blkid/resolve.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/blkid/resolve.c')
-rw-r--r--e2fsprogs/blkid/resolve.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/e2fsprogs/blkid/resolve.c b/e2fsprogs/blkid/resolve.c
index 591b630..40d999a 100644
--- a/e2fsprogs/blkid/resolve.c
+++ b/e2fsprogs/blkid/resolve.c
@@ -96,10 +96,8 @@ char *blkid_get_devname(blkid_cache cache, const char *token,
ret = blkid_strdup(blkid_dev_devname(dev));
errout:
- if (t)
- free(t);
- if (v)
- free(v);
+ free(t);
+ free(v);
if (!cache) {
blkid_put_cache(c);
}