diff options
author | Daniel Lockyer <thisisdaniellockyer@gmail.com> | 2017-11-24 10:31:49 +0000 |
---|---|---|
committer | Daniel Lockyer <thisisdaniellockyer@gmail.com> | 2017-11-24 10:31:49 +0000 |
commit | 5fecf46d76b31eedb3132cd569cfb82295e132bc (patch) | |
tree | dd579ee46b05041a9d7144db44106fe87b5bc6c4 /src/core/transaction.c | |
parent | 71050acb68d2a86c823d561f83683c063b1a99a3 (diff) | |
download | systemd-5fecf46d76b31eedb3132cd569cfb82295e132bc.tar.gz |
Replace free and return NULL with return mfree
Diffstat (limited to 'src/core/transaction.c')
-rw-r--r-- | src/core/transaction.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/transaction.c b/src/core/transaction.c index 52ae664fae..32ad660026 100644 --- a/src/core/transaction.c +++ b/src/core/transaction.c @@ -346,8 +346,7 @@ static char* merge_unit_ids(const char* unit_log_field, char **pairs) { STRV_FOREACH_PAIR(unit_id, job_type, pairs) { next = strlen(unit_log_field) + strlen(*unit_id); if (!GREEDY_REALLOC(ans, alloc, size + next + 1)) { - free(ans); - return NULL; + return mfree(ans); } sprintf(ans + size, "%s%s", unit_log_field, *unit_id); |