Re: [PATCH 2/3] btrfs-progs: fix memory leak in btrfs-map-logical main()

2015-08-28 Thread David Sterba
On Fri, Aug 28, 2015 at 12:38:17AM +0900, Byongho Lee wrote: > 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 Applied, thanks. -- To unsubscribe from this list: sen

[PATCH 2/3] btrfs-progs: fix memory leak in btrfs-map-logical main()

2015-08-27 Thread Byongho Lee
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 --- btrfs-map-logical.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c index