mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-23 22:53:35 +00:00
Btrfs-progs: cleanup subvol_uuid_search memory in btrfs send/receive
Call the cleanup function that was introduced with the other commit. Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
This commit is contained in:
parent
9b1daecf17
commit
969d0cbb51
@ -824,6 +824,7 @@ int do_receive(struct btrfs_receive *r, const char *tomnt, int r_fd)
|
||||
ret = 0;
|
||||
|
||||
out:
|
||||
subvol_uuid_search_finit(&r->sus);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -458,6 +458,7 @@ int cmd_send_start(int argc, char **argv)
|
||||
goto out;
|
||||
}
|
||||
add_clone_source(&send, root_id);
|
||||
subvol_uuid_search_finit(&send.sus);
|
||||
free(subvol);
|
||||
full_send = 0;
|
||||
break;
|
||||
@ -630,6 +631,7 @@ int cmd_send_start(int argc, char **argv)
|
||||
out:
|
||||
if (send.mnt_fd >= 0)
|
||||
close(send.mnt_fd);
|
||||
subvol_uuid_search_finit(&send.sus);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user