Replace free and reassignment with free_and_replace

This commit is contained in:
Daniel Lockyer
2017-11-24 10:33:41 +00:00
parent 5fecf46d76
commit f9ecfd3bbe
12 changed files with 21 additions and 64 deletions
+1 -3
View File
@@ -337,9 +337,7 @@ static int parse_proc_cmdline_item(const char *key, const char *value, void *dat
d->create = arg_whitelist = true;
free(d->name);
d->name = uuid_value;
uuid_value = NULL;
free_and_replace(d->name, uuid_value);
} else
log_warning("Failed to parse luks name switch %s. Ignoring.", value);
}