summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-09 02:22:44 +0100
committerLennart Poettering <lennart@poettering.net>2014-12-09 02:22:44 +0100
commit59cfa62f20f566b2c0279405b302e890812b3334 (patch)
treeacd2444c9119f4878cfb73983c287869a8f38749
parent68ac53e62fadb87f1b33ccd9bff9c3f7f699c937 (diff)
fstab-generator: free all allocated strings
-rw-r--r--src/fstab-generator/fstab-generator.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c
index e8a21f7fff..568b02a434 100644
--- a/src/fstab-generator/fstab-generator.c
+++ b/src/fstab-generator/fstab-generator.c
@@ -617,6 +617,12 @@ int main(int argc, char *argv[]) {
}
free(arg_root_what);
+ free(arg_root_fstype);
+ free(arg_root_options);
+
+ free(arg_usr_what);
+ free(arg_usr_fstype);
+ free(arg_usr_options);
return r < 0 ? EXIT_FAILURE : EXIT_SUCCESS;
}