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:
Stefan Behrens 2013-04-09 19:08:34 +02:00 committed by David Sterba
parent 9b1daecf17
commit 969d0cbb51
2 changed files with 3 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;
}