diff options
author | Daniel Lockyer <thisisdaniellockyer@gmail.com> | 2017-11-24 10:33:41 +0000 |
---|---|---|
committer | Daniel Lockyer <thisisdaniellockyer@gmail.com> | 2017-11-24 10:33:41 +0000 |
commit | f9ecfd3bbed396d744373dd6c8876b7211eac594 (patch) | |
tree | 036c4d7498abc62984d3d1daf8e6eba080943da7 /src/import/pull-raw.c | |
parent | 5fecf46d76b31eedb3132cd569cfb82295e132bc (diff) | |
download | systemd-f9ecfd3bbed396d744373dd6c8876b7211eac594.tar.gz |
Replace free and reassignment with free_and_replace
Diffstat (limited to 'src/import/pull-raw.c')
-rw-r--r-- | src/import/pull-raw.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/import/pull-raw.c b/src/import/pull-raw.c index 8cab72495c..880cb84ba8 100644 --- a/src/import/pull-raw.c +++ b/src/import/pull-raw.c @@ -269,9 +269,7 @@ static int raw_pull_maybe_convert_qcow2(RawPull *i) { } (void) unlink(i->temp_path); - free(i->temp_path); - i->temp_path = t; - t = NULL; + free_and_replace(i->temp_path, t); safe_close(i->raw_job->disk_fd); i->raw_job->disk_fd = converted_fd; |