summaryrefslogtreecommitdiff
path: root/src/firstboot
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2015-08-03 19:26:07 +0200
committerDaniel Mack <daniel@zonque.org>2015-08-03 19:39:42 +0200
commit0da162481886c6ded6fac514cb1e3da1c9845771 (patch)
treee44f2c36d7c43bf0191ccb99875726cd9f93a4f6 /src/firstboot
parent9317cbecf8b06295cd67a3db2f91a8d60788ea24 (diff)
tree-wide: convert some more mfree() candidates
Diffstat (limited to 'src/firstboot')
-rw-r--r--src/firstboot/firstboot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c
index 05f1ae2646..c526a85b05 100644
--- a/src/firstboot/firstboot.c
+++ b/src/firstboot/firstboot.c
@@ -763,8 +763,7 @@ static int parse_argv(int argc, char *argv[]) {
break;
case ARG_ROOT_PASSWORD_FILE:
- free(arg_root_password);
- arg_root_password = NULL;
+ arg_root_password = mfree(arg_root_password);
r = read_one_line_file(optarg, &arg_root_password);
if (r < 0)