mirror of
https://github.com/systemd/systemd.git
synced 2026-06-30 19:57:29 +00:00
sysupdate: Minor fix to a cleanup function on an error path
`process_image()` has historically used `umount_and_freep` to clean up the mounted directory locally, but callers to it have used `umount_and_rmdir_and_freep`. No directory is created after any of the error return paths in `process_image()`, so it should probably be using `umount_and_rmdir_and_freep` too.
This commit is contained in:
@@ -983,7 +983,7 @@ static int process_image(
|
||||
ProcessImageFlags flags) {
|
||||
|
||||
_cleanup_(loop_device_unrefp) LoopDevice *loop_device = NULL;
|
||||
_cleanup_(umount_and_freep) char *mounted_dir = NULL;
|
||||
_cleanup_(umount_and_rmdir_and_freep) char *mounted_dir = NULL;
|
||||
int r;
|
||||
|
||||
assert(c);
|
||||
|
||||
Reference in New Issue
Block a user