tree-wide: introduce mfree()
Pretty trivial helper which wraps free() but returns NULL, so we can
simplify this:
free(foobar);
foobar = NULL;
to this:
foobar = mfree(foobar);
This commit is contained in:
@@ -3327,8 +3327,7 @@ static void print_status_info(
|
||||
if (! dir || last) {
|
||||
printf(dir ? " " : " Drop-In: ");
|
||||
|
||||
free(dir);
|
||||
dir = NULL;
|
||||
dir = mfree(dir);
|
||||
|
||||
if (path_get_parent(*dropin, &dir) < 0) {
|
||||
log_oom();
|
||||
|
||||
Reference in New Issue
Block a user