chiark / gitweb /
fstab-generator: free all allocated strings
authorLennart Poettering <lennart@poettering.net>
Tue, 9 Dec 2014 01:22:44 +0000 (02:22 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 9 Dec 2014 01:22:44 +0000 (02:22 +0100)
src/fstab-generator/fstab-generator.c

index e8a21f7..568b02a 100644 (file)
@@ -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;
 }