Re: [PATCH][next][V3] btrfs: fix memory leak of path on error return path

2019-07-05 Thread Nikolay Borisov
On 5.07.19 г. 10:26 ч., Colin King wrote: > From: Colin Ian King > > Currently if the allocation of roots or tmp_ulist fails the error handling > does not free up the allocation of path causing a memory leak. Fix this and > other similar leaks by moving the call of btrfs_free_path from label o

[PATCH][next][V3] btrfs: fix memory leak of path on error return path

2019-07-05 Thread Colin King
From: Colin Ian King Currently if the allocation of roots or tmp_ulist fails the error handling does not free up the allocation of path causing a memory leak. Fix this and other similar leaks by moving the call of btrfs_free_path from label out to label out_free_ulist. Kudos to David Sterba for