summaryrefslogtreecommitdiff
path: root/e2fsprogs/ext2fs/get_pathname.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/ext2fs/get_pathname.c')
-rw-r--r--e2fsprogs/ext2fs/get_pathname.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/e2fsprogs/ext2fs/get_pathname.c b/e2fsprogs/ext2fs/get_pathname.c
index 594090d..0004790 100644
--- a/e2fsprogs/ext2fs/get_pathname.c
+++ b/e2fsprogs/ext2fs/get_pathname.c
@@ -132,8 +132,7 @@ static errcode_t ext2fs_get_pathname_int(ext2_filsys fs, ext2_ino_t dir,
retval = 0;
cleanup:
- if (gp.name)
- ext2fs_free_mem(&gp.name);
+ ext2fs_free_mem(&gp.name);
return retval;
}