summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--daemon/xfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/daemon/xfs.c b/daemon/xfs.c
index 90c99b21..13ccb11d 100644
--- a/daemon/xfs.c
+++ b/daemon/xfs.c
@@ -461,8 +461,8 @@ do_xfs_growfs (const char *path,
return 0;
error:
- if (buf) free (buf);
- if (err) free (err);
+ free (buf);
+ free (err);
return -1;
}
@@ -643,7 +643,7 @@ do_xfs_repair (const char *device,
ADD_ARG (argv, i, NULL);
r = commandrv (NULL, &err, argv);
- if (buf) free (buf);
+ free (buf);
if (r == -1) {
reply_with_error ("%s: %s", device, err);
goto error;
@@ -653,6 +653,6 @@ do_xfs_repair (const char *device,
return r;
error:
- if (err) free (err);
+ free (err);
return -1;
}