btrfs-progs: fix memory leak in btrfs-map-logical main()
authorByongho Lee <bhlee.kernel@gmail.com>
Thu, 27 Aug 2015 15:38:17 +0000 (00:38 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 31 Aug 2015 17:25:14 +0000 (19:25 +0200)
commit6e381418904027a9f968e97403add5bda03fb319
tree6e5e92e97642062ec61a7cae60a425993565555a
parentabe48ca8600be7c8a7ec3c018b449ad3bd56c7a4
btrfs-progs: fix memory leak in btrfs-map-logical main()

In btrfs-map-logical main(), strdup() allocates memory to output_file,
but that memory is not freed.
So add missing free() calls before return.

Signed-off-by: Byongho Lee <bhlee.kernel@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
btrfs-map-logical.c