btrfs-progs: restore: fix path leak in copy_metadata
authorDavid Sterba <dsterba@suse.cz>
Thu, 23 Apr 2015 14:40:07 +0000 (16:40 +0200)
committerDavid Sterba <dsterba@suse.cz>
Fri, 24 Apr 2015 13:42:05 +0000 (15:42 +0200)
commita8762e43fd6e9ac927e81c13add49a3edcbfcb08
tree49e72cb73fb11c391edfea8a94b55a97d36fdef9
parent9a86668071e77b2da0173b8921153de4d7ba99d8
btrfs-progs: restore: fix path leak in copy_metadata

The path lifecycle spans only this function and we have to free it.

Resolves-coverity-id: 1295367
Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-restore.c